diff options
author | Mattias Andrée <maandree@kth.se> | 2018-11-25 23:13:47 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2018-11-25 23:13:47 +0100 |
commit | ce7ce1b948733084e16fb133ec47d622a67dcf61 (patch) | |
tree | d0c6fd3371f5166cf35b88a63cb13966e94ac45c /wcsndup.c | |
parent | Some fixes and add wide-character string duplication functions (diff) | |
download | libsimple-ce7ce1b948733084e16fb133ec47d622a67dcf61.tar.gz libsimple-ce7ce1b948733084e16fb133ec47d622a67dcf61.tar.bz2 libsimple-ce7ce1b948733084e16fb133ec47d622a67dcf61.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-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; } |