diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-01-02 13:15:08 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-01-02 13:15:08 +0000 |
commit | cd2daa51895976b6d5d9a99ba6ced0b547aab1d3 (patch) | |
tree | 9712f8cb98065e47879672c525212b875a52efc1 /lib/libalpm/add.c | |
parent | 64055e0f74ef5ed933988ff5af1743a919b9a325 (diff) | |
download | pacman-cd2daa51895976b6d5d9a99ba6ced0b547aab1d3.tar.xz |
fixed possible memory corruption
Diffstat (limited to 'lib/libalpm/add.c')
-rw-r--r-- | lib/libalpm/add.c | 2 |
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); |