Commit ede94cc3 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

quick patch.

2001-12-31  Jody Goldberg <jody@gnome.org>

	* sylk.c (fgets_mac) : quick patch.
parent e6ad9030
2001-12-31 Jody Goldberg <jody@gnome.org>
* sylk.c (fgets_mac) : quick patch.
2001-12-31 Jody Goldberg <jody@gnome.org>
* Release 1.0.0
......
......@@ -81,14 +81,16 @@ fgets_mac (char *s, size_t s_len, FILE *f)
{
size_t read = 0;
char *orig_s = s;
int ch;
s_len--;
while (!ferror (f) && !feof (f) && (read < s_len)) {
*s = (char) fgetc (f);
if (*s == EOF)
ch = fgetc (f);
if (ch == EOF)
break;
*s = (char)ch;
read++;
if (*s == '\n')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment