From: kramm Date: Sat, 12 Jun 2004 16:05:32 +0000 (+0000) Subject: added some debug output to argument parser. X-Git-Tag: release-0-6-0~115 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=7e0e5fc4272ec66cf700f343f57535bf530f148f;hp=000035186d9cc8110487402ca4a39cc229b5a9bf;p=swftools.git added some debug output to argument parser. --- 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);