git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3015406
)
fixed anchor parsing
author
kramm
<kramm>
Fri, 1 Apr 2005 08:00:24 +0000
(08:00 +0000)
committer
kramm
<kramm>
Fri, 1 Apr 2005 08:00:24 +0000
(08:00 +0000)
src/swfdump.c
patch
|
blob
|
history
diff --git
a/src/swfdump.c
b/src/swfdump.c
index
c69d28f
..
f6da47a
100644
(file)
--- a/
src/swfdump.c
+++ b/
src/swfdump.c
@@
-982,9
+982,9
@@
int main (int argc,char ** argv)
else if(tag->id == ST_FRAMELABEL) {
int l = strlen(tag->data);
printf(" \"%s\"", tag->data);
else if(tag->id == ST_FRAMELABEL) {
int l = strlen(tag->data);
printf(" \"%s\"", tag->data);
- if(l < tag->len-1) {
+ if((l+1) < tag->len) {
printf(" has %d extra bytes", tag->len-1-l);
printf(" has %d extra bytes", tag->len-1-l);
- if(tag ->len-1-l == 1 && tag->data[tag->len-1] == 1)
+ if(tag ->len - (l+1) == 1 && tag->data[tag->len-1] == 1)
printf(" (ANCHOR)");
}
if((framelabel && !issprite) ||
printf(" (ANCHOR)");
}
if((framelabel && !issprite) ||