Skip to content
Permalink
Browse files

Fixed bug #797

 Ryan C. Gordon      2009-09-19 08:25:21 PDT

This line in SDL_iconv_string (src/stdlib/SDL_iconv.c) ...

        if (!fromcode || !*fromcode) {
            tocode = "UTF-8";
        }

Is probably supposed to assign to "fromcode" and not "tocode".
  • Loading branch information
slouken committed Sep 26, 2009
1 parent ac941c0 commit 37ceb1d990f125dc5d93ba06601e6c116ddb5ea4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/stdlib/SDL_iconv.c
@@ -828,7 +828,7 @@ char *SDL_iconv_string(const char *tocode, const char *fromcode, const char *inb
tocode = "UTF-8";
}
if ( !fromcode || !*fromcode ) {
tocode = "UTF-8";
fromcode = "UTF-8";
}
cd = SDL_iconv_open(tocode, fromcode);
}

0 comments on commit 37ceb1d

Please sign in to comment.