about summary refs log tree commit diff stats
path: root/src/HTInit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/HTInit.c')
-rw-r--r--src/HTInit.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/HTInit.c b/src/HTInit.c
index 743c8ace..b3890286 100644
--- a/src/HTInit.c
+++ b/src/HTInit.c
@@ -1159,11 +1159,9 @@ PRIVATE int HTLoadExtensionsConfigFile ARGS1(
 	while(line[0]) {
 	    HTGetWord(word, line, ' ', '\t');
 	    if (word[0] && (word[0] != ' ')) {
-		char *ext = (char *)malloc(sizeof(char) * (strlen(word)+1+1));
-	        if (!ext)
-	            outofmem(__FILE__, "HTLoadExtensionsConfigFile");
+		char *ext = NULL;
 
-		sprintf(ext, ".%s", word);
+		HTSprintf0(&ext, ".%s", word);
 		LYLowerCase(ext);
 
 		CTRACE((tfp, "SETTING SUFFIX '%s' to '%s'.\n", ext, ct));