summaryrefslogtreecommitdiffhomepage
path: root/src/argv/ntapi_tt_array_utf16.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/argv/ntapi_tt_array_utf16.c')
-rw-r--r--src/argv/ntapi_tt_array_utf16.c1
1 files changed, 1 insertions, 0 deletions
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;