# | Line 184 | Line 184 | setambient(void) /* initialize calculation */ | |
---|---|---|
184 | (flen - lastpos)/AMBVALSIZ); | |
185 | error(WARNING, errmsg); | |
186 | fseek(ambfp, lastpos, SEEK_SET); | |
187 | – | #ifndef _WIN32 /* XXX we need a replacement for that one */ |
187 | ftruncate(fileno(ambfp), (off_t)lastpos); | |
189 | – | #endif |
188 | } | |
189 | } else if ((ambfp = fopen(ambfile, "w+")) != NULL) { | |
190 | initambfile(1); /* else create new file */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |