From 3b41212d61428b7f1c7503b5c563f3991882fc96 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Fri, 18 May 2001 04:53:45 +0000 Subject: [PATCH] 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 --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index 2655f722..d97b773e 100644 --- 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; -- 2.39.5