From: Chris Allegretta Date: Fri, 18 May 2001 04:53:45 +0000 (+0000) Subject: Changed charalloc's calloc() call to use sizeof (char) not sizeof(char *) X-Git-Tag: v1.1.0~46 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3b41212d61428b7f1c7503b5c563f3991882fc96;p=nano.git 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 --- 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;