Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug #797
Browse files Browse the repository at this point in the history
 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 6f179a4 commit 2232b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stdlib/SDL_iconv.c
Expand Up @@ -832,7 +832,7 @@ SDL_iconv_string(const char *tocode, const char *fromcode, const char *inbuf,
tocode = "UTF-8";
}
if (!fromcode || !*fromcode) {
tocode = "UTF-8";
fromcode = "UTF-8";
}
cd = SDL_iconv_open(tocode, fromcode);
}
Expand Down

0 comments on commit 2232b0e

Please sign in to comment.