aboutsummaryrefslogtreecommitdiff
path: root/libpkgconf/path.c
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-10-14 00:05:03 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-10-14 00:05:03 +0300
commit598b0256a354cb2e65ea240e50662d4378f5462c (patch)
treeeebc14a4f618ade0678107c40b16f6538d30aade /libpkgconf/path.c
parent8a5f879840bfe9933a6ff01792b42000de99f8c2 (diff)
Merge with latest original package version (master branch)
Diffstat (limited to 'libpkgconf/path.c')
-rw-r--r--libpkgconf/path.c6
1 files changed, 3 insertions, 3 deletions
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);