aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorJason Woodward2005-01-11 22:53:39 +0000
committerJason Woodward2005-01-11 22:53:39 +0000
commit45c0abb87683d2d4972c2228b4129f67ae24a13e (patch)
tree22324d1f703455f0228b44517e829eb801081341 /src/main.c
parent6e3035a1c6fd9112f99a34997ed831abbfc78ac7 (diff)
downloadslapt-get-45c0abb87683d2d4972c2228b4129f67ae24a13e.tar.gz
all malloc and calloc calls are now wrapped in slapt_malloc and slapt_calloc
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 78b9a8b..d701cc5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -213,7 +213,7 @@ int main( int argc, char *argv[] ){
case INSTALL:
paa = init_pkg_action_args((argc - optind));
while (optind < argc){
- paa->pkgs[paa->count] = malloc(
+ paa->pkgs[paa->count] = slapt_malloc(
( strlen(argv[optind]) + 1 ) * sizeof *paa->pkgs[paa->count]
);
memcpy(paa->pkgs[paa->count],argv[optind],strlen(argv[optind]) + 1);
@@ -226,7 +226,7 @@ int main( int argc, char *argv[] ){
case REMOVE:
paa = init_pkg_action_args((argc - optind));
while (optind < argc){
- paa->pkgs[paa->count] = malloc(
+ paa->pkgs[paa->count] = slapt_malloc(
( strlen(argv[optind]) + 1 ) * sizeof *paa->pkgs[paa->count]
);
memcpy(paa->pkgs[paa->count],argv[optind],strlen(argv[optind]) + 1);