| 393 |
|
} /* else open it ourselves */ |
| 394 |
|
fp = fopen(inspec, "r"); |
| 395 |
|
} |
| 396 |
< |
if (!fp) |
| 396 |
> |
if (!fp) { |
| 397 |
> |
fprintf(stderr, "Cannot open for reading: %s\n", inspec); |
| 398 |
|
return(NULL); |
| 399 |
+ |
} |
| 400 |
|
#ifdef getc_unlocked |
| 401 |
|
flockfile(fp); |
| 402 |
|
#endif |
| 501 |
|
if (nc < 3) return(0); |
| 502 |
|
scan = (uby8 *)tempbuffer((nc+1)*len); |
| 503 |
|
if (!scan) return(0); |
| 504 |
< |
for (j = len; j--; dp += nc) { |
| 504 |
> |
for (j = 0; j < len; j++, dp += nc) { |
| 505 |
|
for (k = nc; k--; ) |
| 506 |
|
scol[k] = dp[k]; |
| 507 |
|
scolor2scolr(scan+j*(nc+1), scol, nc); |