git @ Cat's Eye Technologies Befunge-93 / cc695e8
Don't load invalid (past-EOF) bytes into playfield. Chris Pressey 3 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
6060 (thanks to https://github.com/serprex for this fix!)
6161 exit with non-zero error code on error
6262 remove unimplemented -q option from usage help text
63 don't load invalid (past-EOF) bytes into playfield
6364
6465 v0.94: Sep 2004, Chris Pressey
6566 cleanup only, no functional changes
224225 while (!feof (f))
225226 {
226227 curbuf = fgetc (f);
228 if (feof (f))
229 {
230 curbuf = ' ';
231 break;
232 }
227233 if (curbuf == '\n')
228234 {
229235 curbuf = ' ';