From: kramm Date: Mon, 1 Nov 2004 19:41:17 +0000 (+0000) Subject: some languagedir related bugfixes. X-Git-Tag: release-0-6-3~222 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=2c9cfbcd870e9c0ed86b809b702907b842bfd63e;p=swftools.git some languagedir related bugfixes. --- 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 }