git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@45
6a8cc165-1e22-0410-a132-
eb4e3f353aba
char *buf;
long rsize = 0;
- if ((buf = (char *) malloc(BUFFERSIZE)) == NULL)
- fatal_error("virtual memory exhausted.\n");
+ buf = (char *)xmalloc(BUFFERSIZE);
crc = 0;
if ((crc_flg == 2 || crc_flg) && text_mode)
init_code_cache();
/* ------------------------------------------------------------------------ */
int
rename(from, to)
- char *from, *to;
+ const char *from, *to;
{
struct stat s1, s2;
extern int errno;