mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
548fd1f483
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
11 lines
399 B
Diff
11 lines
399 B
Diff
--- 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--)
|
|
;
|
|
}
|
|
/*
|