diff options
Diffstat (limited to 'wcsndup.c')
-rw-r--r-- | wcsndup.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |