(__argz_create): Correctly calculate length.
authormiles <miles>
Wed, 22 May 1996 22:20:51 +0000 (22:20 +0000)
committermiles <miles>
Wed, 22 May 1996 22:20:51 +0000 (22:20 +0000)
string/argz-create.c

index 2eea911..2be16b0 100644 (file)
@@ -34,7 +34,7 @@ __argz_create (char *const argv[], char **argz, size_t *len)
   char *p;
 
   for (argc = 0; argv[argc] != NULL; ++argc)
-    tlen += strlen (argv[argc]);
+    tlen += strlen (argv[argc]) + 1;
 
   if (tlen == 0)
     *argz = NULL;