summaryrefslogtreecommitdiff
path: root/string/strndup.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/strndup.c')
-rw-r--r--string/strndup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/string/strndup.c b/string/strndup.c
index 6bcfa9a445..cd971e1c6f 100644
--- a/string/strndup.c
+++ b/string/strndup.c
@@ -35,7 +35,9 @@ char *malloc ();
#endif
char *
-__strndup (const char *s, size_t n)
+__strndup (s, n)
+ const char *s;
+ size_t n;
{
size_t len = strnlen (s, n);
char *new = malloc (len + 1);