string: use memcpy instead of strncpy in nstrmul

main
anna 3 years ago
parent 8c591796fb
commit 2fbbfc61c0
Signed by: fef
GPG Key ID: EC22E476DC2D3D84

@ -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;
}

Loading…
Cancel
Save