]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Allocate array name of correct size.
authorUlrich Drepper <drepper@redhat.com>
Fri, 20 Aug 1999 16:54:55 +0000 (16:54 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 20 Aug 1999 16:54:55 +0000 (16:54 +0000)
posix/execvp.c

index 3f93357af824b2781eb09b7fd1b4662165660520..f6933b92b2b89c687bdbe91471a41c9ef7549188 100644 (file)
@@ -93,7 +93,7 @@ execvp (file, argv)
        }
 
       len = strlen (file) + 1;
-      name = __alloca (strlen (path) + len);
+      name = __alloca (strlen (path) + len + 1);
       p = path;
       do
        {