summaryrefslogtreecommitdiffstats
path: root/src/jv_print.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jv_print.c')
-rw-r--r--src/jv_print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jv_print.c b/src/jv_print.c
index cb2824d2..0127f0ca 100644
--- a/src/jv_print.c
+++ b/src/jv_print.c
@@ -43,7 +43,7 @@ static void put_buf(const char *s, int len, FILE *fout, jv *strout, int is_tty)
if (len == -1)
len = strlen(s);
wl = MultiByteToWideChar(CP_UTF8, 0, s, len, NULL, 0);
- ws = malloc((wl + 1) * sizeof(*ws));
+ ws = jv_mem_calloc((wl + 1), sizeof(*ws));
if (!ws)
return;
wl = MultiByteToWideChar(CP_UTF8, 0, s, len, ws, wl + 1);