[cairo-commit] cairo-demo/path_paint ChangeLog, 1.4, 1.5 path_paint.c, 1.4, 1.5

Oeyvind Kolaas commit at pdx.freedesktop.org
Wed Mar 30 04:55:40 PST 2005


Committed by: pippin

Update of /cvs/cairo/cairo-demo/path_paint
In directory gabe:/tmp/cvs-serv15686

Modified Files:
	ChangeLog path_paint.c 
Log Message:
reorder arguments to memset

Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo-demo/path_paint/ChangeLog,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- ChangeLog	11 Nov 2004 15:20:56 -0000	1.4
+++ ChangeLog	30 Mar 2005 12:55:38 -0000	1.5
@@ -1,3 +1,8 @@
+2005-03-30  Øyvind Kolås  <pippin at freedesktop.org>
+
+	* path_paint.c: Applied memset parameter reordering patch from 
+	Ronny V. Vidennes <s864 at ii.uib.no>.
+
 2004-11-11  Øyvind Kolås  <pippin at freedesktop.org>
 
 	* path_paint.c: reindentation and general code cleanup to better adhere

Index: path_paint.c
===================================================================
RCS file: /cvs/cairo/cairo-demo/path_paint/path_paint.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- path_paint.c	11 Nov 2004 15:20:56 -0000	1.4
+++ path_paint.c	30 Mar 2005 12:55:38 -0000	1.5
@@ -2,6 +2,7 @@
 #include <math.h>
 #include <gtkcairo.h>
 #include <gdk/gdkkeysyms.h>
+#include <string.h>
 
 #define WIDTH  800
 #define HEIGHT 600
@@ -159,8 +160,8 @@
 {
   coords_clear ();
   cr_save = cairo_create ();
-  memset (buffer, sizeof(buffer), 0);
-  memset (temp_buffer, sizeof(temp_buffer), 0);
+  memset (buffer, 0, sizeof(buffer));
+  memset (temp_buffer, 0, sizeof(temp_buffer));
 
   cairo_set_target_image (cr_save, temp_buffer,
                           CAIRO_FORMAT_ARGB32, WIDTH, HEIGHT, STRIDE);




More information about the cairo-commit mailing list