Commit 80260ac2 authored by Segher Boessenkool's avatar Segher Boessenkool

fix -c on mswindows (file was opened in binary mode).

svn path=/trunk/vorbis-tools/; revision=2955
parent b21c6cef
......@@ -435,7 +435,7 @@ void open_files(param_t *p)
(strncmp(p->commentfilename,"-",2) == 0)) {
p->com = stdin;
} else {
p->com = fopen(p->commentfilename, "rb");
p->com = fopen(p->commentfilename, "r");
}
if (p->com == NULL) {
fprintf(stderr,
......@@ -452,7 +452,7 @@ void open_files(param_t *p)
(strncmp(p->commentfilename,"-",2) == 0)) {
p->com = stdout;
} else {
p->com = fopen(p->commentfilename, "wb");
p->com = fopen(p->commentfilename, "w");
}
if (p->com == NULL) {
fprintf(stderr,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment