From 548fd1f483f6a72fcabbad54442bf323154869d3 Mon Sep 17 00:00:00 2001 From: Richard Narron Date: Tue, 19 Jun 2018 22:13:11 +0100 Subject: development/THE: Add optional dep PDCurses. Signed-off-by: David Spencer --- development/THE/THE-file-c.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 development/THE/THE-file-c.patch (limited to 'development/THE/THE-file-c.patch') diff --git a/development/THE/THE-file-c.patch b/development/THE/THE-file-c.patch new file mode 100644 index 0000000000..e9a8bbba42 --- /dev/null +++ b/development/THE/THE-file-c.patch @@ -0,0 +1,11 @@ +--- file.c.orig 2013-07-09 17:06:21.000000000 -0700 ++++ file.c 2018-06-14 22:20:32.667616957 -0700 +@@ -759,7 +759,7 @@ bool called_from_get_command; + if (feof(fp)) + { + eof_reached = TRUE; +- for (;*(trec+read_start+chars_read-1)==DOSEOF;chars_read--) ++ for (;chars_read>0 && *(trec+read_start+chars_read-1)==DOSEOF;chars_read--) + ; + } + /* -- cgit v1.2.3