summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/delta.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-16 20:03:33 +0200
committerDan McGee <dan@archlinux.org>2011-06-20 07:10:11 +0200
commit0f26e3aa5b91ffc0a5bef9a0f0bb9d40ec198407 (patch)
tree89362d83560d4eb8b61f9227ec842801819d92ea /lib/libalpm/delta.h
parentdeb5601d8d19760fd569abe3508786d97cc1ceba (diff)
downloadpacman-0f26e3aa5b91ffc0a5bef9a0f0bb9d40ec198407.tar.gz
pacman-0f26e3aa5b91ffc0a5bef9a0f0bb9d40ec198407.tar.xz
Correctly duplicate delta objects
We were using copy_data before; this works for the struct itself but not the strings contained within. Fix it up by duplicating all the data as we do with our other structures. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/delta.h')
-rw-r--r--lib/libalpm/delta.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/delta.h b/lib/libalpm/delta.h
index 87869256..6ac54139 100644
--- a/lib/libalpm/delta.h
+++ b/lib/libalpm/delta.h
@@ -28,6 +28,7 @@
pmdelta_t *_alpm_delta_parse(char *line);
void _alpm_delta_free(pmdelta_t *delta);
+pmdelta_t *_alpm_delta_dup(const pmdelta_t *delta);
off_t _alpm_shortest_delta_path(pmhandle_t *handle, alpm_list_t *deltas,
const char *to, alpm_list_t **path);