summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/vector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vector.c b/src/vector.c
index a930261..944c38b 100644
--- a/src/vector.c
+++ b/src/vector.c
@@ -121,7 +121,7 @@ vector_insert (vector_t vector, void *data, size_t len, int pos)
(pos != INSERT_PREPEND && pos != INSERT_APPEND))
return -EINVAL;
- entry = safemalloc (sizeof (struct vectorentry_s));
+ entry = (struct vectorentry_s *)safemalloc (sizeof (struct vectorentry_s));
if (!entry)
return -ENOMEM;