]> git.wh0rd.org Git - nano.git/commitdiff
Changed charalloc's calloc() call to use sizeof (char) not sizeof(char *)
authorChris Allegretta <chrisa@asty.org>
Fri, 18 May 2001 04:53:45 +0000 (04:53 +0000)
committerChris Allegretta <chrisa@asty.org>
Fri, 18 May 2001 04:53:45 +0000 (04:53 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@663 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

utils.c

diff --git a/utils.c b/utils.c
index 2655f7223facb814f552a61b495382c47fcb20e7..d97b773edeb2e1a7a53530af05b52bc375334df7 100644 (file)
--- 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;