diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2024-03-07 19:25:44 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2024-03-07 19:25:44 +0000 |
commit | b1528e437e46d978c8e5721197ac0d41536c5403 (patch) | |
tree | 3afdf15fb98e0280bb41c41fe7d19ca5f72f16c5 /other/ppmsvgalib.c | |
parent | c84db6d5899ca01a32e4506eb730151c3e03cce3 (diff) | |
download | netpbm-mirror-b1528e437e46d978c8e5721197ac0d41536c5403.tar.gz netpbm-mirror-b1528e437e46d978c8e5721197ac0d41536c5403.tar.xz netpbm-mirror-b1528e437e46d978c8e5721197ac0d41536c5403.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4859 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'other/ppmsvgalib.c')
-rw-r--r-- | other/ppmsvgalib.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/other/ppmsvgalib.c b/other/ppmsvgalib.c index 97cef286..e106280b 100644 --- a/other/ppmsvgalib.c +++ b/other/ppmsvgalib.c @@ -20,6 +20,7 @@ #include "pm_c_util.h" #include "ppm.h" #include "shhopt.h" +#include "mallocvar.h" struct cmdlineInfo { /* All the information the user supplied in the command line, @@ -45,15 +46,15 @@ parseCommandLine (int argc, char ** argv, Note that the strings we return are stored in the storage that was passed to us as the argv array. We also trash *argv. -----------------------------------------------------------------------------*/ - optEntry *option_def = malloc( 100*sizeof( optEntry ) ); - /* Instructions to pm_optParseOptions3 on how to parse our options. - */ + optEntry * option_def; optStruct3 opt; unsigned int option_def_index; unsigned int modeSpec; + MALLOCARRAY(option_def, 100); + option_def_index = 0; /* incremented by OPTENT3 */ OPTENT3(0, "mode", OPT_UINT, &cmdlineP->mode, &modeSpec, 0); |