diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-01-02 11:16:27 +0100 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-01-02 11:16:27 +0100 |
commit | 07a38db48da691cc59da3e5c6d8c218aa42fb7c2 (patch) | |
tree | 31d2ddbbc38a5bed960c90421d897e13cd8de903 | |
parent | 7ff3ad054bc203e46912c526f52de0b727263e09 (diff) | |
download | pacman-07a38db48da691cc59da3e5c6d8c218aa42fb7c2.tar.gz pacman-07a38db48da691cc59da3e5c6d8c218aa42fb7c2.tar.xz |
fixed a possible memory corruption
-rw-r--r-- | lib/libalpm/conflict.c | 2 |
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); } |