This is the mail archive of the
glibc-cvs@sources.redhat.com
mailing list for the glibc project.
libc/io ftw.c
- From: drepper at sources dot redhat dot com
- To: glibc-cvs at sources dot redhat dot com
- Date: 5 Feb 2003 17:46:13 -0000
- Subject: libc/io ftw.c
CVSROOT: /cvs/glibc
Module name: libc
Changes by: drepper@sourceware.org 2003-02-05 17:46:13
Modified files:
io : ftw.c
Log message:
Fix a heap-corrupting bug.
Include <limits.h>.
(PATH_MAX) [!defined PATH_MAX]: Define to 1024.
(process_entry): Allocate enough space to hold the resulting
file name. Don't presume that 2*dirbufsize is enough.
(ftw_startup): Always use PATH_MAX to compute buffer size, now that
it is guaranteed to be defined.