summaryrefslogtreecommitdiff
path: root/string/strndup.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/strndup.c')
-rw-r--r--string/strndup.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/string/strndup.c b/string/strndup.c
index 15b19f720a..51a1969146 100644
--- a/string/strndup.c
+++ b/string/strndup.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996-2015 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -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);