about summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
Diffstat (limited to 'string')
-rw-r--r--string/argz-ctsep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/string/argz-ctsep.c b/string/argz-ctsep.c
index 461b9beb87..f21572459f 100644
--- a/string/argz-ctsep.c
+++ b/string/argz-ctsep.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1996.
 
@@ -57,6 +57,8 @@ __argz_create_sep (const char *string, int delim, char **argz, size_t *len)
 	  *argz = NULL;
 	  *len = 0;
 	}
+
+      *len = nlen;
     }
   else
     {