summaryrefslogtreecommitdiff
path: root/src/cairo-cache.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-04-06 12:20:02 +0000
committerCarl Worth <cworth@cworth.org>2005-04-06 12:20:02 +0000
commit957ceac0c63b70d1a32b64d0d6a89cb1b9bca2c5 (patch)
tree28bb97a6a92de1006466349d90071d35e129bfb5 /src/cairo-cache.c
parenta6d9b6a671faf6cc726af12d4f4e706262c2bd6b (diff)
Fix reversed arguments in call to calloc.
Diffstat (limited to 'src/cairo-cache.c')
-rw-r--r--src/cairo-cache.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cairo-cache.c b/src/cairo-cache.c
index d1ad5a4e..0c8884bc 100644
--- a/src/cairo-cache.c
+++ b/src/cairo-cache.c
@@ -351,8 +351,9 @@ _cairo_cache_init (cairo_cache_t *cache,
#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;
}