aboutsummaryrefslogtreecommitdiffstats
path: root/epan/strutil.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2006-04-27 14:58:46 +0000
committerGerald Combs <gerald@wireshark.org>2006-04-27 14:58:46 +0000
commit36b80f104377113ec196d9c6580d87c8059c53d6 (patch)
treebaaac722a1bcc55f41506923c36649aa6996bc99 /epan/strutil.c
parenta345eab556b0a429376ab167ce428076229908a2 (diff)
Properly grow our buffers for utf_8to16().
svn path=/trunk/; revision=18017
Diffstat (limited to 'epan/strutil.c')
-rw-r--r--epan/strutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/strutil.c b/epan/strutil.c
index 1572717dc4..1d79fa93b6 100644
--- a/epan/strutil.c
+++ b/epan/strutil.c
@@ -694,7 +694,7 @@ wchar_t * utf_8to16(const char *utf8str) {
* for one more character plus a terminating '\0'.
*/
utf16buf_len[idx] *= 2;
- utf16buf[idx] = g_realloc(utf16buf[idx], utf16buf_len[idx]);
+ utf16buf[idx] = g_realloc(utf16buf[idx], utf16buf_len[idx] * sizeof(wchar_t));
}
if (MultiByteToWideChar(CP_UTF8, 0, utf8str,