29 Sep
2002
29 Sep
'02
12:33 a.m.
On my system (Gentoo Linux PPC, GCC 2.95.3), Hugs goes into an infinite loop while parsing the Prelude file. The problem is in input.c, lines 515 and 516: lineBuffer[lineLength] = fgetc(inputStream); if (lineBuffer[lineLength] == EOF) The value of EOF cannot be stored in a char on this system, so 'lineBuffer[lineLength] == EOF' always evaluates to 0. Here's a fix: int ch = fgetc(inputStream); lineBuffer[lineLength] = ch; if (ch == EOF) Glad to help, Jeff Binder
8685
Age (days ago)
8685
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jeff Binder