/* Diff files from a tar archive.
- Copyright (C) 1988, 1992 Free Software Foundation
+ Copyright (C) 1988, 1992, 1993 Free Software Foundation
This file is part of GNU Tar.
/* int amt_read = 0;*/
int size = filesize;
- buf = (char *) malloc (buf_size * sizeof (char));
+ buf = (char *) ck_malloc (buf_size * sizeof (char));
fill_in_sparse_array ();
*/
while (buf_size < numbytes)
{
- buf = (char *) realloc (buf, buf_size * 2 * sizeof (char));
+ buf = (char *) ck_realloc (buf, buf_size * 2 * sizeof (char));
buf_size *= 2;
}
while (numbytes > RECORDSIZE)
* necessary
*/
sp_array_size = 10;
- sparsearray = (struct sp_array *) malloc (sp_array_size * sizeof (struct sp_array));
+ sparsearray = (struct sp_array *) ck_malloc (sp_array_size * sizeof (struct sp_array));
/*
* there are at most five of these structures in the header
* scratch area - realloc it
*/
sparsearray = (struct sp_array *)
- realloc (sparsearray,
+ ck_realloc (sparsearray,
sp_array_size * 2 * sizeof (struct sp_array));
sp_array_size *= 2;
}