Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 173570 | Differences between
and this patch

Collapse All | Expand All

(-)mscgen.ori/src/parser/language.l (+5 lines)
Lines 30-37 Link Here
30
/* Counter for error reporting */
30
/* Counter for error reporting */
31
static unsigned long lex_linenum = 1;
31
static unsigned long lex_linenum = 1;
32
32
33
extern char *strdup(const char *s1);
34
extern int fileno(FILE *stream);
35
33
%}
36
%}
34
37
38
%option nounput
39
35
%%
40
%%
36
41
37
\n            lex_linenum++;
42
\n            lex_linenum++;
(-)mscgen.ori/src/renderer/gd_out.c (-1 / +1 lines)
Lines 143-149 Link Here
143
                  getGdoCtx(ctx)->font,
143
                  getGdoCtx(ctx)->font,
144
                  x,
144
                  x,
145
                  y - gdoTextHeight(ctx),
145
                  y - gdoTextHeight(ctx),
146
                  string,
146
                  (char *)string,
147
                  getGdoPen(ctx));
147
                  getGdoPen(ctx));
148
}
148
}
149
149
(-)mscgen.ori/src/renderer/main.c (-2 / +2 lines)
Lines 805-814 Link Here
805
    else if(strcmp(gOutType, "ismap") == 0)
805
    else if(strcmp(gOutType, "ismap") == 0)
806
    {
806
    {
807
        outType  = ADRAW_FMT_PNG;
807
        outType  = ADRAW_FMT_PNG;
808
        outImage = tempnam(NULL, "png");
808
        outImage = (char *)tmpfile();
809
        if(!outImage)
809
        if(!outImage)
810
        {
810
        {
811
            perror("tempnam() failed");
811
            perror("tmpfile() failed");
812
            return EXIT_FAILURE;
812
            return EXIT_FAILURE;
813
        }
813
        }
814
814

Return to bug 173570