From bfd3f69afcb03340e2d956cfa936afdfcc17b1ad Mon Sep 17 00:00:00 2001 From: William Kendrick Date: Thu, 13 Jan 2011 22:20:07 +0000 Subject: [PATCH] memset args were reversed --- src/tuxpaint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 73e373451..7b2944d29 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -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++)