summaryrefslogtreecommitdiff
path: root/src/util/common_allocation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/common_allocation.c')
-rw-r--r--src/util/common_allocation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/common_allocation.c b/src/util/common_allocation.c
index a404a1627..215df55d4 100644
--- a/src/util/common_allocation.c
+++ b/src/util/common_allocation.c
@@ -147,7 +147,7 @@ GNUNET_xnew_array_3d_ (size_t n,
for (size_t i = 0; i < n; i++)
{
- /* need to cast to (char *) temporarily for byte level acuracy */
+ /* need to cast to (char *) temporarily for byte level accuracy */
ret[i] = (char **) ((char *) ret /* base address */
+ n * sizeof(void **) /* skip 1. dim header */
+ i * m * sizeof(void *)); /* skip to 2. dim header */