| # | Line 154 | Line 154 | writescene( /* write binary scene description */ | |
|---|---|---|
| 154 | for (i = firstobj; i < firstobj+nobjs; i++) | |
| 155 | putobj(objptr(i), fp); | |
| 156 | putobj(NULL, fp); /* terminator */ | |
| 157 | < | if (ferror(fp)) |
| 158 | < | error(SYSTEM, "write error in writescene"); |
| 157 | > | if (fflush(fp) == EOF) |
| 158 | > | error(SYSTEM, "output error in writescene"); |
| 159 | } | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |