X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=form%2Ffld_ftlink.c;h=4ed2219262aa4405f0bc9858f81f77e3d47d5690;hp=301506616fcd0f5d840da6b881d39d455afabeac;hb=b5df67bc6814f67b5562171c53e3720a30819bba;hpb=5242fccf157e715ed878455a3efea6c82b840eb5;ds=sidebyside diff --git a/form/fld_ftlink.c b/form/fld_ftlink.c index 30150661..4ed22192 100644 --- a/form/fld_ftlink.c +++ b/form/fld_ftlink.c @@ -32,7 +32,7 @@ #include "form.priv.h" -MODULE_ID("$Id: fld_ftlink.c,v 1.12 2007/02/03 23:37:46 tom Exp $") +MODULE_ID("$Id: fld_ftlink.c,v 1.13 2007/10/13 19:30:35 tom Exp $") /*--------------------------------------------------------------------------- | Facility : libnform @@ -56,7 +56,7 @@ link_fieldtype(FIELDTYPE *type1, FIELDTYPE *type2) T((T_CALLED("link_fieldtype(%p,%p)"), type1, type2)); if (type1 && type2) { - nftyp = (FIELDTYPE *)malloc(sizeof(FIELDTYPE)); + nftyp = typeMalloc(FIELDTYPE, 1); if (nftyp) {