From 0f26e3aa5b91ffc0a5bef9a0f0bb9d40ec198407 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 16 Jun 2011 13:03:33 -0500 Subject: 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 --- lib/libalpm/delta.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm/delta.h') 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); -- cgit v1.2.3-24-g4f1b