History

Open output file in WRITE mode instead of RDWR.

Erik de Castro Lopo committed 22 years ago

Commit 254f73e1 parent 01d94cc1 file · +1 −1Browse files

Unified · Split

examples/sndfile-resample.c+1−1
@@ -130,7 +130,7 @@ main (int argc, char *argv []) · 129 unmodified lines
130130 truncate (argv [argc - 1], 0) ;
131131 #endif
132132
133− if ((outfile = sf_open (argv [argc - 1], SFM_RDWR, &sfinfo)) == NULL)
133+ if ((outfile = sf_open (argv [argc - 1], SFM_WRITE, &sfinfo)) == NULL)
134134 { printf ("Error : Not able to open output file '%s'\n", argv [argc - 1]) ;
135135 sf_close (infile) ;
136136 exit (1) ;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t