aboutsummaryrefslogtreecommitdiffstats
path: root/wcsndup.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsndup.c')
-rw-r--r--wcsndup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wcsndup.c b/wcsndup.c
index 83e227d..ba4e009 100644
--- a/wcsndup.c
+++ b/wcsndup.c
@@ -16,7 +16,7 @@ libsimple_wcsndup(const wchar_t *s, size_t n) /* TODO test */
if (!ret)
enprintf(status, "wcsdup:");
wmemcpy(ret, s, n);
- ret[n] = '\0';
+ ret[n] = 0;
return ret;
}