| 218 |
|
animate(); |
| 219 |
|
/* all done */ |
| 220 |
|
if (vdef(NEXTANIM)) { |
| 221 |
+ |
char *fullp; |
| 222 |
|
argv[i] = vval(NEXTANIM); /* just change input file */ |
| 223 |
|
if (!silent) |
| 224 |
|
printargs(argc, argv, stdout); |
| 225 |
< |
if ((argv[0] = getpath(progname,getenv("PATH"),X_OK)) == NULL) |
| 226 |
< |
fprintf(stderr, "%s: command not found\n", progname); |
| 225 |
> |
fflush(stdout); |
| 226 |
> |
if ((fullp = getpath(argv[0],getenv("PATH"),X_OK)) == NULL) |
| 227 |
> |
fprintf(stderr, "%s: command not found\n", argv[0]); |
| 228 |
|
else |
| 229 |
< |
execv(progname, argv); |
| 229 |
> |
execv(fullp, argv); |
| 230 |
|
quit(1); |
| 231 |
|
} |
| 232 |
|
quit(0); |
| 233 |
< |
return 0; /* pro forma return */ |
| 233 |
> |
return(0); /* pro forma return */ |
| 234 |
|
userr: |
| 235 |
|
fprintf(stderr, "Usage: %s [-s][-n][-w][-e] anim_file\n", progname); |
| 236 |
|
quit(1); |
| 946 |
|
usepfilt |= nora_rgbe; |
| 947 |
|
} else if (frseq[0] == frame) { /* no interpolation needed */ |
| 948 |
|
if (!rvr && frame > 1+vint(INTERP)) { /* archive previous */ |
| 949 |
+ |
if (arcnext - arcargs + |
| 950 |
+ |
strlen(fbase) >= sizeof(arcargs)-8) { |
| 951 |
+ |
fprintf(stderr, |
| 952 |
+ |
"%s: too many filenames in archive command -- reduce %s variable\n", |
| 953 |
+ |
progname, vnam(DISKSPACE)); |
| 954 |
+ |
quit(1); |
| 955 |
+ |
} |
| 956 |
|
*arcnext++ = ' '; |
| 957 |
|
sprintf(arcnext, fbase, frame-vint(INTERP)-1); |
| 958 |
|
while (*arcnext) arcnext++; |