X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=form%2Ffty_num.c;h=e74e8e36fe2592f842b467fc9c3f7418acb65c0c;hp=d45cb906794fe1af6313ed3b7eaa82a24e3743ee;hb=7c4bc0fa99a1be37a14aa19a5943a549570954c4;hpb=5242fccf157e715ed878455a3efea6c82b840eb5 diff --git a/form/fty_num.c b/form/fty_num.c index d45cb906..e74e8e36 100644 --- a/form/fty_num.c +++ b/form/fty_num.c @@ -34,7 +34,7 @@ #include "form.priv.h" -MODULE_ID("$Id: fty_num.c,v 1.24 2007/02/03 23:37:46 tom Exp $") +MODULE_ID("$Id: fty_num.c,v 1.25 2007/10/13 19:32:54 tom Exp $") #if HAVE_LOCALE_H #include @@ -74,7 +74,7 @@ thisARG; static void * Make_This_Type(va_list *ap) { - thisARG *argn = (thisARG *) malloc(sizeof(thisARG)); + thisARG *argn = typeMalloc(thisARG, 1); if (argn) { @@ -108,7 +108,7 @@ Copy_This_Type(const void *argp) if (argp) { - result = (thisARG *) malloc(sizeof(thisARG)); + result = typeMalloc(thisARG, 1); if (result) { T((T_CREATE("thisARG %p"), result));