summaryrefslogtreecommitdiff
path: root/src/cairo-hash.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-hash.c
parenta6d9b6a671faf6cc726af12d4f4e706262c2bd6b (diff)
downloadcairo-957ceac0c63b70d1a32b64d0d6a89cb1b9bca2c5.tar.gz
Fix reversed arguments in call to calloc.
Diffstat (limited to 'src/cairo-hash.c')
-rw-r--r--src/cairo-hash.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cairo-hash.c b/src/cairo-hash.c
index d1ad5a4e2..0c8884bc6 100644
--- a/src/cairo-hash.c
+++ b/src/cairo-hash.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;
}