Permalink
Browse files

Update mapfile.c

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 75f548e77e1f9c7945d677ccee621b93ee0208f1
Showing with 2 additions and 2 deletions.
  1. +2 −2 mapfile.c
View
@@ -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
}

0 comments on commit 75f548e

Please sign in to comment.