X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fttf2pt1%2Fttf2pt1.c;h=009f7079d966502eb93d67a044aeedb3763d7df2;hb=95188f7e5e440a90515a50c85478ed2fc9ed6859;hp=4daae85cf4ee749bb8a3b114858629ff21e58891;hpb=46bc3c15c27d5894b13ede2956e5017716fdb44a;p=swftools.git diff --git a/pdf2swf/ttf2pt1/ttf2pt1.c b/pdf2swf/ttf2pt1/ttf2pt1.c index 4daae85..009f707 100644 --- a/pdf2swf/ttf2pt1/ttf2pt1.c +++ b/pdf2swf/ttf2pt1/ttf2pt1.c @@ -607,7 +607,7 @@ unicode_init_user( } /* now read in the encoding description file, if requested */ - if ((unicode_map_file = fopen(path, "r")) == NULL) { + if ((unicode_map_file = fopen(path, "rb")) == NULL) { fprintf(stderr, "**** Cannot access map file '%s' ****\n", path); exit(1); } @@ -1709,7 +1709,7 @@ ttf2pt1_main( /* save the command line for the record * (we don't bother about escaping the shell special characters) */ - + j = 0; for(i=1; i