diff options
Diffstat (limited to 'string/strndup.c')
-rw-r--r-- | string/strndup.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/string/strndup.c b/string/strndup.c index 15b19f720a..a15a0062aa 100644 --- a/string/strndup.c +++ b/string/strndup.c @@ -37,9 +37,7 @@ char *malloc (); #endif char * -__strndup (s, n) - const char *s; - size_t n; +__strndup (const char *s, size_t n) { size_t len = __strnlen (s, n); char *new = (char *) malloc (len + 1); |