X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fttf2pt1%2Fttf2pt1.c;h=50752dccaeb579182310176cbcff75ff45949c6b;hb=7e0e5fc4272ec66cf700f343f57535bf530f148f;hp=009f7079d966502eb93d67a044aeedb3763d7df2;hpb=000035186d9cc8110487402ca4a39cc229b5a9bf;p=swftools.git diff --git a/pdf2swf/ttf2pt1/ttf2pt1.c b/pdf2swf/ttf2pt1/ttf2pt1.c index 009f707..50752dc 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, "rb")) == NULL) { + if ((unicode_map_file = fopen(path, "r")) == NULL) { fprintf(stderr, "**** Cannot access map file '%s' ****\n", path); exit(1); } @@ -2069,7 +2069,7 @@ ttf2pt1_main( } } - if ((null_file = fopen(BITBUCKET, "wb")) == NULL) { + if ((null_file = fopen(BITBUCKET, "w")) == NULL) { fprintf(stderr, "**** Cannot open %s ****\n", BITBUCKET); exit(1); @@ -2142,12 +2142,12 @@ ttf2pt1_main( exit(1); } ofp = pfa_file; - ifp = fdopen(p[0], "rb"); + ifp = fdopen(p[0], "r"); if (ifp == NULL) { perror("**** Cannot use pipe for reading ****\n"); exit(1); } - pfa_file = fdopen(p[1], "wb"); + pfa_file = fdopen(p[1], "w"); if (pfa_file == NULL) { perror("**** Cannot use pipe for writing ****\n"); exit(1);