From: Miles Bader Date: Wed, 22 May 1996 22:20:51 +0000 (+0000) Subject: (__argz_create): Correctly calculate length. X-Git-Tag: upstream/2.30~29473 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de3bf9b1a569f80fa7668aab472b44fe105ec5bf;p=external%2Fglibc.git (__argz_create): Correctly calculate length. --- diff --git a/string/argz-create.c b/string/argz-create.c index 2eea911..2be16b0 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;