ref: 254f73ef89e93d675e6d8b339588e4e779d595d1
parent: 01d94cc17effcd73d1345047d3294a637004f718
author: Erik de Castro Lopo <[email protected]>
date: Wed Mar 31 22:07:10 EST 2004
Open output file in WRITE mode instead of RDWR.
--- a/examples/sndfile-resample.c
+++ b/examples/sndfile-resample.c
@@ -130,7 +130,7 @@
truncate (argv [argc - 1], 0) ;
#endif
- if ((outfile = sf_open (argv [argc - 1], SFM_RDWR, &sfinfo)) == NULL)
+ if ((outfile = sf_open (argv [argc - 1], SFM_WRITE, &sfinfo)) == NULL)
{ printf ("Error : Not able to open output file '%s'\n", argv [argc - 1]) ;
sf_close (infile) ;
exit (1) ;