Fix a heap-corrupting bug.
authordrepper <drepper>
Wed, 5 Feb 2003 17:46:12 +0000 (17:46 +0000)
committerdrepper <drepper>
Wed, 5 Feb 2003 17:46:12 +0000 (17:46 +0000)
commitd91133943c51d534de5ac7c26e791e315def9795
tree74ae721679003e40e9d42ab5c6f99c167734975d
parent780b806399d55efbcd37b13eb73e22324c646966
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.
io/ftw.c