summary refs log tree commit diff
path: root/string/argz-create.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/argz-create.c')
-rw-r--r--string/argz-create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string/argz-create.c b/string/argz-create.c
index 2eea91162e..2be16b03e7 100644
--- a/string/argz-create.c
+++ b/string/argz-create.c
@@ -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;