summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-01-02 13:15:08 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-01-02 13:15:08 +0000
commitcd2daa51895976b6d5d9a99ba6ced0b547aab1d3 (patch)
tree9712f8cb98065e47879672c525212b875a52efc1 /lib/libalpm
parent64055e0f74ef5ed933988ff5af1743a919b9a325 (diff)
downloadpacman-cd2daa51895976b6d5d9a99ba6ced0b547aab1d3.tar.xz
fixed possible memory corruption
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index 3a610c85..404e0619 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -364,7 +364,7 @@ int add_commit(pmtrans_t *trans, pmdb_t *db)
}
/* copy the skiplist over */
for(lp = trans->skiplist; lp; lp = lp->next) {
- tr->skiplist = pm_list_add(tr->skiplist, lp->data);
+ tr->skiplist = pm_list_add(tr->skiplist, strdup(lp->data));
}
if(remove_commit(tr, db) == -1) {
FREETRANS(tr);