diff options
-rw-r--r-- | lib/charset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/charset.c b/lib/charset.c index 91cbe87509c..de201cf3b9b 100644 --- a/lib/charset.c +++ b/lib/charset.c @@ -407,7 +407,7 @@ u16 *u16_strdup(const void *src) if (!src) return NULL; - len = (u16_strlen(src) + 1) * sizeof(u16); + len = u16_strsize(src); new = malloc(len); if (!new) return NULL; |