From bdde218bfa18ad64108639b3ca340187508375a6 Mon Sep 17 00:00:00 2001 From: John Popplewell Date: Tue, 17 Jan 2006 21:20:20 +0000 Subject: [PATCH] Fix missing string copy in uppercase_w(). --- src/tuxpaint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index dc5d4ddbc..1791547b8 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -15347,11 +15347,11 @@ static wchar_t * uppercase_w(wchar_t * str) wchar_t * ustr; unsigned int i; - //ustr = wcsdup(str); ustr = (wchar_t *) malloc(sizeof(wchar_t) * wcslen(str)); if (ustr != NULL) { + wcscpy(ustr, str); if (only_uppercase) { for (i = 0; i < wcslen(ustr); i++)