diff options
Diffstat (limited to 'dpkg.c')
-rw-r--r-- | dpkg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -192,7 +192,7 @@ static void depends_sort_visit(package_t **ordered, package_t *pkgs, | |||
192 | 192 | ||
193 | #if 0 | 193 | #if 0 |
194 | /* add it to the list */ | 194 | /* add it to the list */ |
195 | newnode = (struct package_t *)malloc(sizeof(struct package_t)); | 195 | newnode = (struct package_t *)xmalloc(sizeof(struct package_t)); |
196 | /* make a shallow copy */ | 196 | /* make a shallow copy */ |
197 | *newnode = *pkg; | 197 | *newnode = *pkg; |
198 | newnode->next = *ordered; | 198 | newnode->next = *ordered; |
@@ -609,7 +609,7 @@ static int dpkg_dounpack(package_t *pkg) | |||
609 | } | 609 | } |
610 | 610 | ||
611 | /* create the list file */ | 611 | /* create the list file */ |
612 | lst_file = (char *) malloc(strlen(infodir) + strlen(pkg->package) + 6); | 612 | lst_file = (char *) xmalloc(strlen(infodir) + strlen(pkg->package) + 6); |
613 | strcpy(lst_file, infodir); | 613 | strcpy(lst_file, infodir); |
614 | strcat(lst_file, pkg->package); | 614 | strcat(lst_file, pkg->package); |
615 | strcat(lst_file, ".list"); | 615 | strcat(lst_file, ".list"); |