From: François Pinard Date: Wed, 16 Nov 1994 03:03:12 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=a5bcafe8818a542d15bad6c743ab9629173cda77;p=chaz%2Ftar *** empty log message *** --- diff --git a/src/tar.c b/src/tar.c index c439df5..7a16c35 100644 --- a/src/tar.c +++ b/src/tar.c @@ -303,7 +303,7 @@ options(argc, argv) /* Set default option values */ blocking = DEFBLOCKING; /* From Makefile */ - ar_files = malloc (sizeof (char *) * 10); + ar_files = (char **) malloc (sizeof (char *) * 10); ar_files_len = 10; n_ar_files = 0; cur_ar_file = 0; @@ -401,8 +401,9 @@ options(argc, argv) #endif if (n_ar_files == ar_files_len) ar_files - = (sizeof (char *) - * (ar_files_len *= 2)); + = (char **) + ck_malloc (sizeof (char *) + * (ar_files_len *= 2)); ar_files[n_ar_files++]=buf; } break; @@ -445,8 +446,8 @@ options(argc, argv) case 'f': /* Use ar_file for the archive */ if (n_ar_files == ar_files_len) ar_files - = (sizeof (char *) - * (ar_files_len *= 2)); + = (char **) ck_malloc (sizeof (char *) + * (ar_files_len *= 2)); ar_files[n_ar_files++] = optarg; break;