Commit 8d848afb authored by Chris Allegretta's avatar Chris Allegretta
Browse files

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
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
...@@ -113,7 +113,7 @@ void parse_rcfile(FILE *rcstream, char *filename) ...@@ -113,7 +113,7 @@ void parse_rcfile(FILE *rcstream, char *filename)
int set = 0, lineno = 0, i; int set = 0, lineno = 0, i;
int errors = 0; int errors = 0;
buf = ncalloc(1024, sizeof(char)); buf = charalloc(1024);
while (fgets(buf, 1023, rcstream) > 0) { while (fgets(buf, 1023, rcstream) > 0) {
lineno++; lineno++;
ptr = buf; ptr = buf;
...@@ -180,7 +180,7 @@ void parse_rcfile(FILE *rcstream, char *filename) ...@@ -180,7 +180,7 @@ void parse_rcfile(FILE *rcstream, char *filename)
fill = i; fill = i;
} }
else { else {
alt_speller = ncalloc(strlen(option) + 1, sizeof(char)); alt_speller = charalloc(strlen(option) + 1);
strcpy(alt_speller, option); strcpy(alt_speller, option);
} }
} else } else
......
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