mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
Fix gcc9 warning.
This commit is contained in:
parent
fa80d1967e
commit
8162deb1bb
@ -59,7 +59,7 @@ void String_string_MINUS_set_MINUS_at_BANG_(String *into, int i, const String *s
|
||||
* so this write is safe
|
||||
*/
|
||||
CHK_INDEX(i+lsrc, strlen(*into)+1);
|
||||
strncpy(dest, *src, lsrc);
|
||||
memcpy(dest, *src, lsrc);
|
||||
}
|
||||
|
||||
String String_copy(const String *s) {
|
||||
|
Loading…
Reference in New Issue
Block a user