Mail Archives: djgpp-workers/1997/10/14/22:46:33
Subject: 971009: c1args.c patch
*** C1ARGS.ORG Thu Oct 9 18:49:22 1997
--- C1ARGS.C Mon Oct 13 18:17:30 1997
***************
*** 245,249 ****
st_size = lseek(f, 0L, SEEK_END);
lseek(f, 0L, SEEK_SET);
! bytes = (char *)c1xmalloc(st_size);
len = _read(f, bytes, st_size);
_close(f);
--- 245,249 ----
st_size = lseek(f, 0L, SEEK_END);
lseek(f, 0L, SEEK_SET);
! bytes = (char *)c1xmalloc(st_size > 0 ? st_size : 1);
len = _read(f, bytes, st_size);
_close(f);
- Raw text -