Skip to content

Commit

Permalink
Update mapfile.c
Browse files Browse the repository at this point in the history
There has a bug in line 668 and 670. we should replace fprintf with msIO_fprintf. if not, the result will print to stdout in python mapscript.
  • Loading branch information
takinwang committed Nov 16, 2013
1 parent a93fa60 commit 75f548e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mapfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,9 @@ static void writeColor(FILE *stream, int indent, const char *name, colorObj *def
sprintf(buffer+4, "%02x", color->blue);
sprintf(buffer+6, "%02x", color->alpha);
*(buffer+8) = 0;
fprintf(stream, "%s \"#%s\"\n", name, buffer);
msIO_fprintf(stream, "%s \"#%s\"\n", name, buffer);
} else {
fprintf(stream, "%s %d %d %d\n", name, color->red, color->green, color->blue);
msIO_fprintf(stream, "%s %d %d %d\n", name, color->red, color->green, color->blue);
}
#endif
}
Expand Down

0 comments on commit 75f548e

Please sign in to comment.