summaryrefslogtreecommitdiff
path: root/gfx/fig.c
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/fig.c')
-rw-r--r--gfx/fig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/fig.c b/gfx/fig.c
index fa1365c..41d4933 100644
--- a/gfx/fig.c
+++ b/gfx/fig.c
@@ -262,7 +262,7 @@ static void *fig_init(int argc, char *const *argv)
if (!strchr(argv[arg], '='))
usage(*argv);
n_vars++;
- vars = realloc(vars, sizeof(const char *) * n_vars);
+ vars = realloc_type_n(vars, const char *, n_vars);
vars[n_vars - 1] = argv[arg];
}