summaryrefslogtreecommitdiff
path: root/development/THE/THE-file-c.patch
blob: e9a8bbba425289aee0b4c49b06eccc9fc24bf1e6 (plain)
1
2
3
4
5
6
7
8
9
10
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--)
             ;
       }
       /*