summaryrefslogtreecommitdiff
path: root/gfx/fig.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-22 21:00:10 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-22 21:00:40 -0300
commitce690a463d1905b2aba8a04c29a248af66153681 (patch)
tree96072589d04ca8b1c536c6a0b5c8f58c7c2a21b1 /gfx/fig.c
parent8dfb6b2c9f722d70b30e5794fe20ce9450dd05d4 (diff)
downloadeeshow-ce690a463d1905b2aba8a04c29a248af66153681.tar.gz
eeshow-ce690a463d1905b2aba8a04c29a248af66153681.tar.bz2
eeshow-ce690a463d1905b2aba8a04c29a248af66153681.zip
eeshow/misc/util.h (realloc_size, realloc_type_n): get rid of bare "realloc"
Finally ! Shoulds have done this a long time ago.
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];
}