# | Line 141 | Line 141 | char *zfile, *oldfile; | |
---|---|---|
141 | fputresolu(YMAJOR|YDECR, hresolu, vresolu, stdout); | |
142 | /* recover file and compute first */ | |
143 | i = salvage(oldfile); | |
144 | < | if (zfd != -1 && lseek(zfd, (long)i*hresolu*sizeof(float), 0) == -1) |
144 | > | if (zfd != -1 && i > 0 && |
145 | > | lseek(zfd, (long)i*hresolu*sizeof(float), 0) == -1) |
146 | error(SYSTEM, "z file seek error in render"); | |
147 | ypos = vresolu-1 - i; | |
148 | fillscanline(scanbar[0], zbar[0], hresolu, ypos, psample); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |