memset args were reversed

This commit is contained in:
William Kendrick 2011-01-13 22:20:07 +00:00
parent 38ebabcbef
commit bfd3f69afc

View file

@ -1345,7 +1345,7 @@ static SDL_Surface *render_text_w(TuxPaint_Font * restrict font,
utfstr_max = (sizeof(char) * 4 * (wcslen(str) + 1));
utfstr = (char *) malloc(utfstr_max);
memset(utfstr, utfstr_max, 0);
memset(utfstr, 0, utfstr_max);
j = 0;
for (i = 0; i < wcslen(str); i++)