diff options
Diffstat (limited to 'string')
-rw-r--r-- | string/argz-stringify.c | 4 | ||||
-rw-r--r-- | string/strndup.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/string/argz-stringify.c b/string/argz-stringify.c index 364555fa8d..9e1c0c7da6 100644 --- a/string/argz-stringify.c +++ b/string/argz-stringify.c @@ -1,5 +1,5 @@ /* Routines for dealing with '\0' separated arg vectors. - Copyright (C) 1995,96,97,2000 Free Software Foundation, Inc. + Copyright (C) 1995,96,97,2000,2001 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Miles Bader <miles@gnu.org> @@ -29,7 +29,7 @@ __argz_stringify (char *argz, size_t len, int sep) if (len > 0) while (1) { - size_t part_len = strnlen (argz, len); + size_t part_len = __strnlen (argz, len); argz += part_len; len -= part_len; if (len-- <= 1) /* includes final '\0' we want to stop at */ diff --git a/string/strndup.c b/string/strndup.c index 0bb6080262..98f497c7ed 100644 --- a/string/strndup.c +++ b/string/strndup.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998, 2001 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 @@ -42,8 +42,8 @@ __strndup (s, n) const char *s; size_t n; { - size_t len = strnlen (s, n); - char *new = malloc (len + 1); + size_t len = __strnlen (s, n); + char *new = (char *) malloc (len + 1); if (new == NULL) return NULL; |