summary refs log tree commit diff
path: root/pls.c
diff options
context:
space:
mode:
Diffstat (limited to 'pls.c')
-rw-r--r--pls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pls.c b/pls.c
index bd40dbd..c6071c7 100644
--- a/pls.c
+++ b/pls.c
@@ -26,7 +26,7 @@ wchar_t *wcssep(wchar_t **stringp, const wchar_t *delim) {
 	size_t i = wcscspn(orig, delim);
 	*stringp = NULL;
 	if (orig[i]) {
-		orig[i] = '\0';
+		orig[i] = L'\0';
 		*stringp = &orig[i + 1];
 	}
 	return orig;