git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added "b" flag to fopen.
[swftools.git]
/
pdf2swf
/
ttf2pt1
/
t1asm.c
diff --git
a/pdf2swf/ttf2pt1/t1asm.c
b/pdf2swf/ttf2pt1/t1asm.c
index
0c60a0c
..
9756231
100644
(file)
--- a/
pdf2swf/ttf2pt1/t1asm.c
+++ b/
pdf2swf/ttf2pt1/t1asm.c
@@
-526,14
+526,14
@@
int main(int argc, char **argv)
/* possibly open input & output files */
if (argc - optind >= 1) {
/* possibly open input & output files */
if (argc - optind >= 1) {
- ifp = fopen(argv[optind], "r");
+ ifp = fopen(argv[optind], "rb");
if (!ifp) {
fprintf(stderr, "error: cannot open %s for reading\n", argv[1]);
exit(1);
}
}
if (argc - optind >= 2) {
if (!ifp) {
fprintf(stderr, "error: cannot open %s for reading\n", argv[1]);
exit(1);
}
}
if (argc - optind >= 2) {
- ofp = fopen(argv[optind + 1], "w");
+ ofp = fopen(argv[optind + 1], "wb");
if (!ofp) {
fprintf(stderr, "error: cannot open %s for writing\n", argv[2]);
exit(1);
if (!ofp) {
fprintf(stderr, "error: cannot open %s for writing\n", argv[2]);
exit(1);