git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fblock_t > block_t
[swftools.git]
/
src
/
swfstrings.c
diff --git
a/src/swfstrings.c
b/src/swfstrings.c
index
aae32dd
..
1aedf6d
100644
(file)
--- a/
src/swfstrings.c
+++ b/
src/swfstrings.c
@@
-27,6
+27,7
@@
int args_callback_option(char*name,char*val)
printf("swfstrings - part of %s %s\n", PACKAGE, VERSION);
exit(0);
}
printf("swfstrings - part of %s %s\n", PACKAGE, VERSION);
exit(0);
}
+ return 0;
}
int args_callback_longoption(char*name,char*val)
{
}
int args_callback_longoption(char*name,char*val)
{
@@
-73,7
+74,7
@@
int main (int argc,char ** argv)
if(!filename)
exit(0);
if(!filename)
exit(0);
- f = open(filename,O_RDONLY);
+ f = open(filename,O_RDONLY|O_BINARY);
if (f>=0)
{ if FAILED(swf_ReadSWF(f,&swf))
{ fprintf(stderr,"%s is not a valid SWF file or contains errors.\n",filename);
if (f>=0)
{ if FAILED(swf_ReadSWF(f,&swf))
{ fprintf(stderr,"%s is not a valid SWF file or contains errors.\n",filename);