summaryrefslogtreecommitdiffstats
path: root/contrib/ncurses/form/fty_num.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ncurses/form/fty_num.c')
-rw-r--r--contrib/ncurses/form/fty_num.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/contrib/ncurses/form/fty_num.c b/contrib/ncurses/form/fty_num.c
index cd09dfb..e74e8e3 100644
--- a/contrib/ncurses/form/fty_num.c
+++ b/contrib/ncurses/form/fty_num.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc. *
+ * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
@@ -34,7 +34,7 @@
#include "form.priv.h"
-MODULE_ID("$Id: fty_num.c,v 1.23 2006/04/22 21:33:05 tom Exp $")
+MODULE_ID("$Id: fty_num.c,v 1.25 2007/10/13 19:32:54 tom Exp $")
#if HAVE_LOCALE_H
#include <locale.h>
@@ -74,10 +74,11 @@ thisARG;
static void *
Make_This_Type(va_list *ap)
{
- thisARG *argn = (thisARG *) malloc(sizeof(thisARG));
+ thisARG *argn = typeMalloc(thisARG, 1);
if (argn)
{
+ T((T_CREATE("thisARG %p"), argn));
argn->precision = va_arg(*ap, int);
argn->low = va_arg(*ap, double);
argn->high = va_arg(*ap, double);
@@ -107,9 +108,12 @@ Copy_This_Type(const void *argp)
if (argp)
{
- result = (thisARG *) malloc(sizeof(thisARG));
+ result = typeMalloc(thisARG, 1);
if (result)
- *result = *ap;
+ {
+ T((T_CREATE("thisARG %p"), result));
+ *result = *ap;
+ }
}
return (void *)result;
}
OpenPOWER on IntegriCloud