index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2019-06-20 16:28:44 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-06-20 16:28:44 +1000 |
commit | 4ca5f5949b42f76867f11eec0a5379ed3eb531d2 (patch) | |
tree | 203b0b5b0162e9dca1d49fe455702af5b25dff52 /src/pacman/query.c | |
parent | 1a343d378a9e0c4ea143db9e796cf7262eb0d4cb (diff) |
-rw-r--r-- | src/pacman/query.c | 2 |
diff --git a/src/pacman/query.c b/src/pacman/query.c index 3e728257..de82553c 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -189,7 +189,7 @@ static int query_fileowner(alpm_list_t *targets) if(!lrealpath(filename, rpath)) { /* Can't canonicalize path, try to proceed anyway */ - strncpy(rpath, filename, PATH_MAX); + strcpy(rpath, filename); } if(strncmp(rpath, root, rootlen) != 0) { |