path: don't use PATH_MAX, use PKGCONF_ITEM_SIZE * 4 for realpath buffer

bsdstubs-errno
Ariadne Conill 2021-03-18 06:56:55 -06:00
parent a4e8cf87ad
commit dbb6a232e5
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ pkgconf_path_add(const char *text, pkgconf_list_t *dirlist, bool filter)
return;
if (S_ISLNK(st.st_mode))
{
char pathbuf[PATH_MAX];
char pathbuf[PKGCONF_ITEM_SIZE * 4];
char *linkdest = realpath(path, pathbuf);
if (linkdest != NULL && stat(linkdest, &st) == -1)