# | Line 163 | Line 163 | setambient() /* initialize calculation */ | |
---|---|---|
163 | (flen - pos)/AMBVALSIZ); | |
164 | error(WARNING, errmsg); | |
165 | fseek(ambfp, pos, 0); | |
166 | + | #ifndef _WIN32 /* XXX we need a replacement for that one */ |
167 | ftruncate(fileno(ambfp), (off_t)pos); | |
168 | + | #endif |
169 | } | |
170 | } else if ((ambfp = fopen(ambfile, "w+")) != NULL) { | |
171 | initambfile(1); /* else create new file */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |