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
/
edittext.c
diff --git
a/lib/example/edittext.c
b/lib/example/edittext.c
index
463b888
..
19b04a4
100644
(file)
--- a/
lib/example/edittext.c
+++ b/
lib/example/edittext.c
@@
-121,7
+121,7
@@
int main (int argc,char ** argv)
tag = swf_InsertTag(tag,ST_SHOWFRAME);
tag = swf_InsertTag(tag,ST_END);
tag = swf_InsertTag(tag,ST_SHOWFRAME);
tag = swf_InsertTag(tag,ST_END);
- f = open("edittext.swf",O_WRONLY|O_CREAT|O_TRUNC, 0644);
+ f = open("edittext.swf",O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0644);
if(swf_WriteSWF(f,&swf)<0) fprintf(stderr,"WriteSWF() failed.\n");
close(f);
if(swf_WriteSWF(f,&swf)<0) fprintf(stderr,"WriteSWF() failed.\n");
close(f);