X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=form%2Ffty_int.c;h=8a5367f74084fd517134dad67341af42d000fb5f;hp=d8ac3d03d709d2a72e3356b129f3d3c54d9ab2ed;hb=8fc9fa113b27e0749e0840fef04c9d4acad4aae7;hpb=5242fccf157e715ed878455a3efea6c82b840eb5 diff --git a/form/fty_int.c b/form/fty_int.c index d8ac3d03..8a5367f7 100644 --- a/form/fty_int.c +++ b/form/fty_int.c @@ -34,7 +34,7 @@ #include "form.priv.h" -MODULE_ID("$Id: fty_int.c,v 1.21 2007/02/03 23:37:46 tom Exp $") +MODULE_ID("$Id: fty_int.c,v 1.22 2007/10/13 19:32:40 tom Exp $") #if USE_WIDEC_SUPPORT #define isDigit(c) (iswdigit((wint_t)(c)) || isdigit(UChar(c))) @@ -63,7 +63,7 @@ thisARG; static void * Make_This_Type(va_list *ap) { - thisARG *argp = (thisARG *) malloc(sizeof(thisARG)); + thisARG *argp = typeMalloc(thisARG, 1); if (argp) { @@ -91,7 +91,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));