]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - form/fty_alnum.c
ncurses 5.6 - patch 20081004
[ncurses.git] / form / fty_alnum.c
index 2408b8cd4401bae75e7d7d6860b96961e3271429..59dd2736e8ab85a357ba80e8e7304e362f69e2b5 100644 (file)
@@ -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)
     {