/[xforms]/xforms/image/image_io_filter.c
ViewVC logotype

Diff of /xforms/image/image_io_filter.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by leeming, Sun Apr 6 15:52:39 2003 UTC revision 1.2 by leeming, Thu Apr 17 09:04:57 2003 UTC
# Line 64  get_tmpf(char *obuf) Line 64  get_tmpf(char *obuf)
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) */
# Line 101  flimage_description_via_filter(FL_IMAGE Line 101  flimage_description_via_filter(FL_IMAGE
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
# Line 233  flimage_write_via_filter(FL_IMAGE * im, Line 233  flimage_write_via_filter(FL_IMAGE * im,
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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26