Terminate wide strings with null char in ss_convert_to_wide

Closes #2175.
This commit is contained in:
Victor M. Alvarez
2025-10-20 09:39:54 +02:00
parent 5cbc7407bd
commit 2668c524a4
+1
View File
@@ -251,6 +251,7 @@ SIZED_STRING* ss_convert_to_wide(SIZED_STRING* s)
}
wide->length = s->length * 2;
wide->c_string[wide->length] = '\x00';
wide->flags = s->flags | STRING_FLAGS_WIDE;
return wide;