X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=form%2Ffty_alnum.c;h=59dd2736e8ab85a357ba80e8e7304e362f69e2b5;hp=2408b8cd4401bae75e7d7d6860b96961e3271429;hb=8485ec820b6d0ad70950b63834f31b3ca235c84b;hpb=5242fccf157e715ed878455a3efea6c82b840eb5 diff --git a/form/fty_alnum.c b/form/fty_alnum.c index 2408b8cd..59dd2736 100644 --- a/form/fty_alnum.c +++ b/form/fty_alnum.c @@ -34,7 +34,7 @@ #include "form.priv.h" -MODULE_ID("$Id: fty_alnum.c,v 1.20 2007/02/03 23:37:46 tom Exp $") +MODULE_ID("$Id: fty_alnum.c,v 1.21 2007/10/13 19:31:52 tom Exp $") #define thisARG alnumARG @@ -55,7 +55,7 @@ thisARG; static void * Make_This_Type(va_list *ap) { - thisARG *argp = (thisARG *) malloc(sizeof(thisARG)); + thisARG *argp = typeMalloc(thisARG, 1); if (argp) { @@ -78,7 +78,7 @@ static void * Copy_This_Type(const void *argp) { const thisARG *ap = (const thisARG *)argp; - thisARG *result = (thisARG *) malloc(sizeof(thisARG)); + thisARG *result = typeMalloc(thisARG, 1); if (result) {