From 1da90790a17f62183380bfea0f894d5a3cd33e50 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 29 Aug 2019 10:14:34 +0000 Subject: __ntapi_tt_array_convert_utf16_to_utf8(): remove arrv init requirement. --- src/argv/ntapi_tt_array_utf16.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/argv/ntapi_tt_array_utf16.c b/src/argv/ntapi_tt_array_utf16.c index 6235606..d035ad4 100644 --- a/src/argv/ntapi_tt_array_utf16.c +++ b/src/argv/ntapi_tt_array_utf16.c @@ -294,6 +294,7 @@ int32_t __stdcall __ntapi_tt_array_convert_utf16_to_utf8( warrv++; } + *arrv = 0; *bytes_written = (size_t)(ch - (uint8_t *)buffer); return NT_STATUS_SUCCESS; -- cgit v1.2.3