From 07a38db48da691cc59da3e5c6d8c218aa42fb7c2 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Mon, 2 Jan 2006 10:16:27 +0000 Subject: fixed a possible memory corruption --- lib/libalpm/conflict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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); } -- cgit v1.2.3-70-g09d2