aboutsummaryrefslogtreecommitdiff
path: root/libpkgconf/path.c
diff options
context:
space:
mode:
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);