* sysdeps/posix/getcwd.c: Allocate buffer large enough not only if
	size == 0, but also for size < 0 [PR libc/1269].
This commit is contained in:
Ulrich Drepper 1999-08-20 18:04:45 +00:00
parent d13ec59a49
commit f95a00152a
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,8 @@
1999-08-20 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/posix/getcwd.c: Allocate buffer large enough not only if
size == 0, but also for size < 0 [PR libc/1269].
* posix/execvp.c (execvp): Allocate array name of correct size.
Optimize inner loop. Use execve directly, not execv.