Commit 3b41212d authored by Chris Allegretta's avatar Chris Allegretta
Browse files

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
parent 8d848afb
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment