Subversion Repositories wimsdev

Rev

Rev 3718 | Rev 6578 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3718 Rev 3837
Line 61... Line 61...
61
        char tbuf[1024],sbuf[4096];
61
        char tbuf[1024],sbuf[4096];
62
        fclose(f); f=NULL;
62
        fclose(f); f=NULL;
63
        p1=getenv("TMPDIR"); if(p1==NULL || *p1==0) p1=".";
63
        p1=getenv("TMPDIR"); if(p1==NULL || *p1==0) p1=".";
64
        snprintf(tbuf,sizeof(tbuf),"%s/drawfile_.gif",p1);
64
        snprintf(tbuf,sizeof(tbuf),"%s/drawfile_.gif",p1);
65
        snprintf(sbuf,sizeof(sbuf),"convert %s %s",namebuf,tbuf);
65
        snprintf(sbuf,sizeof(sbuf),"convert %s %s",namebuf,tbuf);
-
 
66
        if (system(sbuf)) error("system_failed");
66
        system(sbuf); f=fopen(tbuf,"r");       
67
        f=fopen(tbuf,"r");     
67
    }
68
    }
68
    return f;
69
    return f;
69
}
70
}
70
 
71
 
71
        /* Does nothing; just a comment. */
72
        /* Does nothing; just a comment. */