diff options
Diffstat (limited to 'payloads/libpayload/libc')
-rw-r--r-- | payloads/libpayload/libc/string.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/payloads/libpayload/libc/string.c b/payloads/libpayload/libc/string.c index c9f0603387..f71d1c3af6 100644 --- a/payloads/libpayload/libc/string.c +++ b/payloads/libpayload/libc/string.c @@ -142,6 +142,11 @@ char *strncpy(char *d, const char *s, int n) return d; } +char *strcpy(char *d, const char *s) +{ + return strncpy(d, s, strlen(s)); +} + char *strncat(char *d, const char *s, int n) { char *p = d + strlen(d); |