From 598b0256a354cb2e65ea240e50662d4378f5462c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 14 Oct 2017 00:05:03 +0300 Subject: Merge with latest original package version (master branch) --- libpkgconf/path.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libpkgconf/path.c') diff --git a/libpkgconf/path.c b/libpkgconf/path.c index 7f90928..36855fe 100644 --- a/libpkgconf/path.c +++ b/libpkgconf/path.c @@ -78,7 +78,7 @@ void pkgconf_path_add(const char *text, pkgconf_list_t *dirlist, bool filter) { pkgconf_path_t *node; - char path[PKGCONF_SBUFSIZE]; + char path[PKGCONF_ITEM_SIZE]; #ifdef PKGCONF_CACHE_INODES struct stat st; @@ -89,7 +89,7 @@ pkgconf_path_add(const char *text, pkgconf_list_t *dirlist, bool filter) return; if (S_ISLNK(st.st_mode)) { - char linkdest[PKGCONF_SBUFSIZE]; + char linkdest[PKGCONF_ITEM_SIZE]; ssize_t len = readlink(text, linkdest, sizeof(linkdest)); if (len != -1 && (size_t)len < sizeof(linkdest) && @@ -201,7 +201,7 @@ bool pkgconf_path_match_list(const char *path, const pkgconf_list_t *dirlist) { pkgconf_node_t *n = NULL; - char relocated[PKGCONF_SBUFSIZE]; + char relocated[PKGCONF_ITEM_SIZE]; const char *cpath = path; pkgconf_strlcpy(relocated, path, sizeof relocated); -- cgit v1.1