Message-Id: <199710150246.WAA03806@delorie.com> From: Oberhumer Markus Subject: 971009: c1args.c patch To: dj AT delorie DOT com (DJ Delorie), djgpp-workers AT delorie DOT com (djgpp-workers) Date: Wed, 15 Oct 1997 03:39:49 +0100 (MET) Return-Read-To: markus DOT oberhumer AT jk DOT uni-linz DOT ac DOT at Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk 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);