Skip to content

Commit 256d89c

Browse files
committed
win: use L'\0' as UTF-16 null terminator
uv__convert_utf8_to_utf16() always null terminates its UTF-16 output. This commit updates the code to use L'\0' as the terminator, instead of '\0'.
1 parent 1357a52 commit 256d89c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/win/util.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ int uv__convert_utf8_to_utf16(const char* utf8, int utf8len, WCHAR** utf16) {
13251325
return uv_translate_sys_error(GetLastError());
13261326
}
13271327

1328-
(*utf16)[bufsize] = '\0';
1328+
(*utf16)[bufsize] = L'\0';
13291329
return 0;
13301330
}
13311331

0 commit comments

Comments
 (0)