summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-02 11:16:27 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-01-02 11:16:27 +0100
commit07a38db48da691cc59da3e5c6d8c218aa42fb7c2 (patch)
tree31d2ddbbc38a5bed960c90421d897e13cd8de903 /lib
parent7ff3ad054bc203e46912c526f52de0b727263e09 (diff)
downloadpacman-07a38db48da691cc59da3e5c6d8c218aa42fb7c2.tar.gz
pacman-07a38db48da691cc59da3e5c6d8c218aa42fb7c2.tar.xz
fixed a possible memory corruption
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/conflict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/conflict.c b/lib/libalpm/conflict.c
index 1c9cd309..0e77dec4 100644
--- a/lib/libalpm/conflict.c
+++ b/lib/libalpm/conflict.c
@@ -146,7 +146,7 @@ PMList *db_find_conflicts(pmdb_t *db, PMList *targets, char *root, PMList **skip
* Our workaround is to scan through all "old" packages and all "new"
* ones, looking for files that jump to different packages.
*/
- *skip_list = pm_list_add(*skip_list, filestr);
+ *skip_list = pm_list_add(*skip_list, strdup(filestr));
}
FREEPKG(dbpkg2);
}