From 2c9cfbcd870e9c0ed86b809b702907b842bfd63e Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 1 Nov 2004 19:41:17 +0000 Subject: [PATCH] some languagedir related bugfixes. --- pdf2swf/SWFOutputDev.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index 5186af3..4d05d03 100644 --- a/pdf2swf/SWFOutputDev.cc +++ b/pdf2swf/SWFOutputDev.cc @@ -1952,14 +1952,14 @@ void pdfswf_addlanguagedir(char*dir) int l; FILE*fi = 0; - char* config_file = (char*)malloc(strlen(dir)+256); + char* config_file = (char*)malloc(strlen(dir) + 1 + sizeof("add-to-xpdfrc")); strcpy(config_file, dir); strcat(config_file, dirseparator()); strcat(config_file, "add-to-xpdfrc"); fi = fopen(config_file, "rb"); if(!fi) { - msg(" Could not open %s"); + msg(" Could not open %s", config_file); return; } globalParams->parseFile(new GString(config_file), fi); @@ -2005,7 +2005,7 @@ void pdfswf_addfontdir(char*dirname) } closedir(dir); #else - msg(" No dirent.h- unable to add font dir %s"); + msg(" No dirent.h- unable to add font dir %s", dir); #endif } -- 1.7.10.4