From 27cfea3fc05e0e6b128db42bf046ae386825f83a Mon Sep 17 00:00:00 2001 From: wkendrick Date: Thu, 13 Jan 2011 22:20:07 +0000 Subject: memset args were reversed --- diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 73e3734..7b2944d 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++) -- cgit v0.9.1