diff --git a/liblouis/compileTranslationTable.c b/liblouis/compileTranslationTable.c index f5c4c0684e..5ec8812bd6 100644 --- a/liblouis/compileTranslationTable.c +++ b/liblouis/compileTranslationTable.c @@ -4980,7 +4980,7 @@ resolveSubtable (const char *table, const char *base, const char *searchPath) if (table == NULL || table[0] == '\0') return NULL; - tableFile = (char *) malloc (MAXSTRING * sizeof(char)); + tableFile = (char *) malloc (MAXSTRING * sizeof(char) * 2); // // First try to resolve against base