fix stupid array bug: missing sizeof()
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
This commit is contained in:
parent
df89ea2887
commit
3513e43f0f
|
@ -66,7 +66,7 @@
|
||||||
dtor(&arr->tab[i]); \
|
dtor(&arr->tab[i]); \
|
||||||
} \
|
} \
|
||||||
memmove(arr->tab + pos + count, arr->tab + pos + len, \
|
memmove(arr->tab + pos + count, arr->tab + pos + len, \
|
||||||
arr->len - pos - len); \
|
(arr->len - pos - len) * sizeof(*items)); \
|
||||||
arr->len += count - len; \
|
arr->len += count - len; \
|
||||||
} \
|
} \
|
||||||
memcpy(arr->tab + pos, items, count * sizeof(*items)); \
|
memcpy(arr->tab + pos, items, count * sizeof(*items)); \
|
||||||
|
|
Loading…
Reference in New Issue