[cairo-commit] cairo/test cairo_test.c,1.13,1.14
Kristian Hogsberg
commit at pdx.freedesktop.org
Thu Mar 17 13:14:03 PST 2005
Committed by: krh
Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv10127/test
Modified Files:
cairo_test.c
Log Message:
2005-03-17 Kristian Høgsberg <krh at redhat.com>
From Tor Lillqvist <tml at novell.com>:
* test/cairo_test.c (cairo_test): Open output PNG files in binary
mode.
Index: cairo_test.c
===================================================================
RCS file: /cvs/cairo/cairo/test/cairo_test.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- cairo_test.c 10 Mar 2005 17:22:20 -0000 1.13
+++ cairo_test.c 17 Mar 2005 21:13:58 -0000 1.14
@@ -159,7 +159,7 @@
return CAIRO_TEST_SUCCESS;
}
- png_file = fopen (png_name, "w");
+ png_file = fopen (png_name, "wb");
write_png_argb32 (png_buf, png_file, test->width, test->height, stride);
fclose (png_file);
@@ -205,7 +205,7 @@
log_file = fopen (log_name, "a");
fprintf (log_file, "Error: %d pixels differ from reference image %s\n",
pixels_changed, ref_name);
- png_file = fopen (diff_name, "w");
+ png_file = fopen (diff_name, "wb");
write_png_argb32 (diff_buf, png_file, test->width, test->height, stride);
fclose (png_file);
fclose (log_file);
More information about the cairo-commit
mailing list