From a4905a6314139517d0cd5c0547de033efc31fc78 Mon Sep 17 00:00:00 2001 From: Starg Date: Tue, 9 Jan 2018 10:58:15 +0900 Subject: [PATCH] w32_utf8_to_mbs(): null-terminate string --- timidity/common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/timidity/common.c b/timidity/common.c index 5853dfce..5daff5d0 100644 --- a/timidity/common.c +++ b/timidity/common.c @@ -1695,6 +1695,7 @@ char *w32_utf8_to_mbs(const char *str) safe_free(buff8); return NULL; } + buff8[buff8_size] = '\0'; return buff8; } #endif -- 2.11.0