git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test all constant types
[swftools.git]
/
lib
/
example
/
glyphshape.c
diff --git
a/lib/example/glyphshape.c
b/lib/example/glyphshape.c
index
c7e16f6
..
d1e8d01
100644
(file)
--- a/
lib/example/glyphshape.c
+++ b/
lib/example/glyphshape.c
@@
-157,7
+157,7
@@
int main(int argc, char ** argv)
\r
// swf_WriteCGI(&swf);
\r
\r
\r
// swf_WriteCGI(&swf);
\r
\r
- f = open("glyphshape.swf",O_RDWR|O_CREAT|O_TRUNC,0644);
\r
+ f = open("glyphshape.swf",O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0644);
\r
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
\r
close(f);
\r
\r
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
\r
close(f);
\r
\r