Don't load invalid (past-EOF) bytes into playfield.
Chris Pressey
4 years ago
60 | 60 | (thanks to https://github.com/serprex for this fix!) |
61 | 61 | exit with non-zero error code on error |
62 | 62 | remove unimplemented -q option from usage help text |
63 | don't load invalid (past-EOF) bytes into playfield | |
63 | 64 | |
64 | 65 | v0.94: Sep 2004, Chris Pressey |
65 | 66 | cleanup only, no functional changes |
224 | 225 | while (!feof (f)) |
225 | 226 | { |
226 | 227 | curbuf = fgetc (f); |
228 | if (feof (f)) | |
229 | { | |
230 | curbuf = ' '; | |
231 | break; | |
232 | } | |
227 | 233 | if (curbuf == '\n') |
228 | 234 | { |
229 | 235 | curbuf = ' '; |