[xiph-cvs] cvs commit: vorbis-tools/vorbiscomment vcomment.c

Segher Boessenkool segher at xiph.org
Fri Jan 11 02:21:32 PST 2002



segher      02/01/11 02:21:32

  Modified:    vorbiscomment vcomment.c
  Log:
  fix -c on mswindows (file was opened in binary mode).

Revision  Changes    Path
1.16      +2 -2      vorbis-tools/vorbiscomment/vcomment.c

Index: vcomment.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/vorbiscomment/vcomment.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- vcomment.c	2002/01/01 01:39:52	1.15
+++ vcomment.c	2002/01/11 10:21:31	1.16
@@ -435,7 +435,7 @@
                                 (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 @@
                                 (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,

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list