nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 8d848afb89607d11dab530861d28d65b6d24e893
parent 88b091510b35c6e2195f4a3e0638a90b3b53023a
Author: Chris Allegretta <chrisa@asty.org>
Date:   Fri, 18 May 2001 04:44:16 +0000

Changed ncalloc calls in rcfile.c to charalloc


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@662 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Mrcfile.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rcfile.c b/rcfile.c @@ -113,7 +113,7 @@ void parse_rcfile(FILE *rcstream, char *filename) int set = 0, lineno = 0, i; int errors = 0; - buf = ncalloc(1024, sizeof(char)); + buf = charalloc(1024); while (fgets(buf, 1023, rcstream) > 0) { lineno++; ptr = buf; @@ -180,7 +180,7 @@ void parse_rcfile(FILE *rcstream, char *filename) fill = i; } else { - alt_speller = ncalloc(strlen(option) + 1, sizeof(char)); + alt_speller = charalloc(strlen(option) + 1); strcpy(alt_speller, option); } } else