diff --git a/rcfile.c b/rcfile.c
index fb8ca1fd6220da92dd6540bfaadfbcfe830eb8f9..0f6d7fa6820dcbc1bc4eeefc7012f405996b7fe6 100644
--- 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