summaryrefslogtreecommitdiff
path: root/development/THE/THE-file-c.patch
diff options
context:
space:
mode:
authorRichard Narron <richard@aaazen.com>2018-06-19 22:13:11 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-06-23 08:44:00 +0700
commit548fd1f483f6a72fcabbad54442bf323154869d3 (patch)
treecad6507117cf80d0909671d423b93cc51d982117 /development/THE/THE-file-c.patch
parentdd3c763269518668117489c72193c1b28687deec (diff)
downloadslackbuilds-548fd1f483f6a72fcabbad54442bf323154869d3.tar.gz
development/THE: Add optional dep PDCurses.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/THE/THE-file-c.patch')
-rw-r--r--development/THE/THE-file-c.patch11
1 files changed, 11 insertions, 0 deletions
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--)
+ ;
+ }
+ /*