git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed tests const.as and static.as
[swftools.git]
/
lib
/
example
/
box.c
diff --git
a/lib/example/box.c
b/lib/example/box.c
index
0e7caa1
..
3fbedcb
100644
(file)
--- a/
lib/example/box.c
+++ b/
lib/example/box.c
@@
-304,7
+304,7
@@
int main (int argc,char ** argv)
// swf_WriteCGI(&swf);
// swf_WriteCGI(&swf);
- f = open("box.swf",O_RDWR|O_CREAT|O_TRUNC,0644);
+ f = open("box.swf",O_RDWR|O_CREAT|O_TRUNC|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);