Make references to NAME_MAX refer to PATH_MAX instead.

This commit is contained in:
Robert Lunnon 2005-05-07 14:50:00 +00:00 committed by Alexandre Julliard
parent d62356aa1e
commit f4949b8d80
1 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@
# include <pwd.h>
#endif
#include <grp.h>
#include <limits.h>
#define COBJMACROS
#define NONAMELESSUNION
@ -314,7 +315,7 @@ static BOOL UNIXFS_build_subfolder_pidls(const char *path, LPITEMIDLIST **apidl,
}
/* Allocate space for fully qualified paths */
pszFQPath = SHAlloc(strlen(path) + NAME_MAX);
pszFQPath = SHAlloc(strlen(path) + PATH_MAX);
if (!pszFQPath) {
WARN("SHAlloc failed!\n");
return FALSE;