64 |
; |
; |
65 |
else |
else |
66 |
{ |
{ |
67 |
snprintf(buf[k], sizeof(buf[k]), |
fl_snprintf(buf[k], sizeof(buf[k]), |
68 |
"%s/.FL%03d_%d.tmp", "/tmp",seq++, (int) getpid()); |
"%s/.FL%03d_%d.tmp", "/tmp",seq++, (int) getpid()); |
69 |
name = buf[k]; |
name = buf[k]; |
70 |
/* creat the file now in exclusive mode (for security) */ |
/* creat the file now in exclusive mode (for security) */ |
101 |
|
|
102 |
do |
do |
103 |
{ |
{ |
104 |
snprintf(cmd, sizeof(cmd)-12, *q, im->infile, tmpf); |
fl_snprintf(cmd, sizeof(cmd)-12, *q, im->infile, tmpf); |
105 |
if (verbose) |
if (verbose) |
106 |
fprintf(stderr, "executing %s\n", cmd); |
fprintf(stderr, "executing %s\n", cmd); |
107 |
else |
else |
233 |
/* now we have the intermediate image ready, generate the shell cmd */ |
/* now we have the intermediate image ready, generate the shell cmd */ |
234 |
for (shellcmd = cmds, status = !err; status && *shellcmd; shellcmd++) |
for (shellcmd = cmds, status = !err; status && *shellcmd; shellcmd++) |
235 |
{ |
{ |
236 |
snprintf(cmd, sizeof(cmd), *shellcmd, tmpf, ofile); |
fl_snprintf(cmd, sizeof(cmd), *shellcmd, tmpf, ofile); |
237 |
if (!verbose) |
if (!verbose) |
238 |
strcat(cmd, " 2>/dev/null"); |
strcat(cmd, " 2>/dev/null"); |
239 |
else |
else |