From de3bf9b1a569f80fa7668aab472b44fe105ec5bf Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 22 May 1996 22:20:51 +0000 Subject: (__argz_create): Correctly calculate length. --- string/argz-create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string') 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; -- cgit 1.4.1