[cairo-commit] cairo/src cairo-cache.c,1.8,1.9

Carl Worth commit at pdx.freedesktop.org
Wed Apr 6 12:20:05 PDT 2005


Committed by: cworth

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv19703/src

Modified Files:
	cairo-cache.c 
Log Message:

        * src/cairo-cache.c (_cairo_cache_init): Fix reversed arguments in
        call to calloc.


Index: cairo-cache.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-cache.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- cairo-cache.c	3 Feb 2005 23:24:36 -0000	1.8
+++ cairo-cache.c	6 Apr 2005 19:20:02 -0000	1.9
@@ -351,8 +351,9 @@
 #endif
 
 	cache->backend = backend;	
-	cache->entries = calloc (sizeof(cairo_cache_entry_base_t *),
-				 cache->arrangement->size);
+	cache->entries = calloc (cache->arrangement->size,
+				 sizeof(cairo_cache_entry_base_t *));
+				 
 	if (cache->entries == NULL)
 	    return CAIRO_STATUS_NO_MEMORY;
     }    




More information about the cairo-commit mailing list