diff options
author | Dan McGee <dan@archlinux.org> | 2007-11-14 22:51:16 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-11-14 22:51:16 -0600 |
commit | f75ee7176235f2c1a531113985d715ddcafb6d05 (patch) | |
tree | 0b43fc0659f6049dddd65624239fb3a0b30cab4c /lib/libalpm/alpm_list.h | |
parent | c244cfecf654d34032585530f00d68501ec63d77 (diff) | |
download | pacman-f75ee7176235f2c1a531113985d715ddcafb6d05.tar.xz |
Fix alpm_list_copy_data
So I spent a good 4 hours tracking a bug down tonight due to
alpm_list_copy_data not actually doing what I expected to do. We can't find
the size of an object we don't know the type of, so rewrite it so we pass
in the size explicitly. This was making _alpm_pkg_dup fail and causing all
sorts of other issues.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm_list.h')
-rw-r--r-- | lib/libalpm/alpm_list.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/alpm_list.h b/lib/libalpm/alpm_list.h index de35f18e..b364670e 100644 --- a/lib/libalpm/alpm_list.h +++ b/lib/libalpm/alpm_list.h @@ -60,7 +60,7 @@ alpm_list_t *alpm_list_remove(alpm_list_t *haystack, const void *needle, alpm_li alpm_list_t *alpm_list_remove_dupes(const alpm_list_t *list); alpm_list_t *alpm_list_strdup(const alpm_list_t *list); alpm_list_t *alpm_list_copy(const alpm_list_t *list); -alpm_list_t *alpm_list_copy_data(const alpm_list_t *list); +alpm_list_t *alpm_list_copy_data(const alpm_list_t *list, size_t size); alpm_list_t *alpm_list_reverse(alpm_list_t *list); /* item accessors */ |