diff options
Diffstat (limited to 'lib/strndup.c')
-rw-r--r-- | lib/strndup.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/strndup.c b/lib/strndup.c index b610e40e6..40e0ac28d 100644 --- a/lib/strndup.c +++ b/lib/strndup.c @@ -33,9 +33,7 @@ char *malloc (); /* Duplicate S, returning an identical malloc'd string. */ char * -strndup (s, n) - const char *s; - size_t n; +strndup (const char *s, size_t n) { char *new = malloc (n + 1); |