Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwkendrick <wkendrick>2011-01-13 22:20:07 (GMT)
committer wkendrick <wkendrick>2011-01-13 22:20:07 (GMT)
commit27cfea3fc05e0e6b128db42bf046ae386825f83a (patch)
treed38e8892bd40a23fac0f8fc5e1e419a4b7b4d2a6
parentcc9d77cc5fe731b95041650501d1e3fc018b4a29 (diff)
memset args were reversed
-rw-r--r--src/tuxpaint.c2
1 files changed, 1 insertions, 1 deletions
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++)