git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dump out global methods
[swftools.git]
/
lib
/
example
/
jpegtest.c
diff --git
a/lib/example/jpegtest.c
b/lib/example/jpegtest.c
index
3931814
..
4e195d9
100644
(file)
--- a/
lib/example/jpegtest.c
+++ b/
lib/example/jpegtest.c
@@
-148,7
+148,7
@@
int main( int argc, char ** argv)
// swf_WriteCGI(&swf);
// swf_WriteCGI(&swf);
- f = open("jpegtest.swf",O_WRONLY|O_CREAT, 0644);
+ f = open("jpegtest.swf",O_WRONLY|O_CREAT||O_BINARY, 0644);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);