Blame tuxpaint-0.9.21-memset.patch
|
|
1861542 |
From da064f6c8b2bcbc7f8fb00fbdc49ba3b2f0543ac Mon Sep 17 00:00:00 2001
|
|
|
1861542 |
From: Lubomir Rintel <lkundrak@v3.sk>
|
|
|
1861542 |
Date: Tue, 2 Mar 2010 12:54:08 +0100
|
|
|
1861542 |
Subject: [PATCH 2/2] Fix memset argument order
|
|
|
1861542 |
|
|
|
1861542 |
---
|
|
|
1861542 |
src/tuxpaint.c | 2 +-
|
|
|
1861542 |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
1861542 |
|
|
|
1861542 |
diff --git a/src/tuxpaint.c b/src/tuxpaint.c
|
|
|
1861542 |
index 6047cbb..145fb10 100644
|
|
|
1861542 |
--- a/src/tuxpaint.c
|
|
|
1861542 |
+++ b/src/tuxpaint.c
|
|
|
1861542 |
@@ -1130,7 +1130,7 @@ static SDL_Surface *render_text_w(TuxPaint_Font * restrict font,
|
|
|
1861542 |
|
|
|
1861542 |
utfstr_max = (sizeof(char) * 4 * (wcslen(str) + 1));
|
|
|
1861542 |
utfstr = (char *) malloc(utfstr_max);
|
|
|
1861542 |
- memset(utfstr, utfstr_max, 0);
|
|
|
1861542 |
+ memset(utfstr, 0, utfstr_max);
|
|
|
1861542 |
|
|
|
1861542 |
j = 0;
|
|
|
1861542 |
for (i = 0; i < wcslen(str); i++)
|
|
|
1861542 |
--
|
|
|
1861542 |
1.7.0
|
|
|
1861542 |
|