summaryrefslogtreecommitdiff
path: root/src/util/common_allocation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-11-14 17:17:36 +0100
committerChristian Grothoff <christian@grothoff.org>2020-11-14 17:17:36 +0100
commitf62e24a88c21235bc3c901508cfb474509ef2961 (patch)
treeee481be9675674d83f54a6c66dee8356ef1dbcbc /src/util/common_allocation.c
parent3522008dfd14f049a821dfba7ba89a27aa27d4aa (diff)
spell checking
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 */