summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 6fbe08ae..028ed8aa 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -300,7 +300,7 @@ int _alpm_unpack(pmhandle_t *handle, const char *archive, const char *prefix,
/* If specific files were requested, skip entries that don't match. */
if(list) {
char *entry_prefix = strdup(entryname);
- char *p = strstr(prefix,"/");
+ char *p = strstr(entry_prefix,"/");
if(p) {
*(p+1) = '\0';
}