From f353668991869e956ac37df14513c2f5dcacd5c5 Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Sat, 2 Aug 2003 07:17:43 +0000 Subject: [PATCH] revert to always using custom fgets --- ChangeLog | 2 ++ cfile/cfile.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 68050c10..dea50454 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2003-08-02 Martin Schaffner + * cfile/cfile.c: revert to always using custom fgets + * main/endlevel.c, main/mission.c: handle missing exit sequence components gracefully diff --git a/cfile/cfile.c b/cfile/cfile.c index 79fa856b..39cdec33 100644 --- a/cfile/cfile.c +++ b/cfile/cfile.c @@ -1,4 +1,4 @@ -/* $Id: cfile.c,v 1.15 2003-07-25 05:00:12 btb Exp $ */ +/* $Id: cfile.c,v 1.16 2003-08-02 07:17:43 btb Exp $ */ /* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO @@ -621,12 +621,14 @@ char * cfgets( char * buf, size_t n, CFILE * fp ) int i; int c; +#if 0 // don't use the standard fgets, because it will only handle the native line-ending style if (fp->lib_offset == 0) // This is not an archived file { t = fgets(buf, n, fp->file); fp->raw_position = ftell(fp->file); return t; } +#endif for (i=0; i