diff options
author | Gerald Combs <gerald@wireshark.org> | 2006-04-27 14:58:46 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2006-04-27 14:58:46 +0000 |
commit | 36b80f104377113ec196d9c6580d87c8059c53d6 (patch) | |
tree | baaac722a1bcc55f41506923c36649aa6996bc99 /epan/strutil.c | |
parent | a345eab556b0a429376ab167ce428076229908a2 (diff) |
Properly grow our buffers for utf_8to16().
svn path=/trunk/; revision=18017
Diffstat (limited to 'epan/strutil.c')
-rw-r--r-- | epan/strutil.c | 2 |
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, |