delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/10/14/22:46:33

Message-Id: <199710150246.WAA03806@delorie.com>
From: Oberhumer Markus <k3040e4 AT c210 DOT edvz DOT uni-linz DOT ac DOT at>
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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019