(__argz_create): Correctly calculate length.

This commit is contained in:
Miles Bader 1996-05-22 22:20:51 +00:00
parent 0efef8fcee
commit de3bf9b1a5

View 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;