summaryrefslogtreecommitdiff
path: root/archival/dpkg.c
diff options
context:
space:
mode:
authorMike Frysinger2005-08-16 05:32:42 +0000
committerMike Frysinger2005-08-16 05:32:42 +0000
commit1eef0c4571d6319e67005944b7c20307fb8f5b15 (patch)
tree47b604f693a34a36895b4cfd4cfb47ccf6e3c029 /archival/dpkg.c
parent71224980e1a26977c0884c679a51c685ad46a44f (diff)
downloadbusybox-1eef0c4571d6319e67005944b7c20307fb8f5b15.zip
busybox-1eef0c4571d6319e67005944b7c20307fb8f5b15.tar.gz
Bernhard Fischer says: use xmalloc() instead of malloc()
Diffstat (limited to 'archival/dpkg.c')
-rw-r--r--archival/dpkg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c
index 8944657..5f9f3a7 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -1299,7 +1299,7 @@ static char **all_control_list(const char *package_name)
char **remove_files;
/* Create a list of all /var/lib/dpkg/info/<package> files */
- remove_files = malloc(sizeof(all_control_files));
+ remove_files = xmalloc(sizeof(all_control_files));
while (all_control_files[i]) {
remove_files[i] = xmalloc(strlen(package_name) + strlen(all_control_files[i]) + 21);
sprintf(remove_files[i], "/var/lib/dpkg/info/%s.%s", package_name, all_control_files[i]);