commit 3b41212d61428b7f1c7503b5c563f3991882fc96
parent 8d848afb89607d11dab530861d28d65b6d24e893
Author: Chris Allegretta <chrisa@asty.org>
Date: Fri, 18 May 2001 04:53:45 +0000
Changed charalloc's calloc() call to use sizeof (char) not sizeof(char *)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@663 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utils.c b/utils.c
@@ -107,7 +107,7 @@ char *charalloc(size_t howmuch)
/* Panic save? */
- if (!(r = calloc(howmuch, sizeof (char *))))
+ if (!(r = calloc(howmuch, sizeof (char))))
die(_("nano: calloc: out of memory!"));
return (char *) r;