diff --git a/src/string/nstrmul.c b/src/string/nstrmul.c index 7389156..4f20bf1 100644 --- a/src/string/nstrmul.c +++ b/src/string/nstrmul.c @@ -57,7 +57,7 @@ string *nchrmul(nchar c, usize n, error *err) char *pos = multiplied; while (n-- != 0) { - strncpy(pos, &s[0], s_size); + memcpy(pos, &s[0], s_size); pos += s_size; }