lwext4: Replace Genode::strncpy by copy_cstring

Issue genodelabs/genode#3752
This commit is contained in:
Norman Feske
2020-05-19 11:26:13 +02:00
parent e4d979c8de
commit 3b7c338c4b

View File

@@ -161,13 +161,15 @@ int strncmp(char const *s1, char const *s2, size_t n)
char *strcpy(char *d, char const *s) char *strcpy(char *d, char const *s)
{ {
return Genode::strncpy(d,s, ~0UL); Genode::copy_cstring(d,s, ~0UL);
return d;
} }
char *strncpy(char *d, char const *s, size_t n) char *strncpy(char *d, char const *s, size_t n)
{ {
return Genode::strncpy(d, s, n); Genode::copy_cstring(d, s, n);
return d;
} }