X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfdump.c;h=f6da47abe35d6e528cf0e1c043f4719261696486;hb=219fa13e2a8d3118b26156ef68128dd6c0dd43fd;hp=c69d28f2bc35fc4ca9ef892edb9610b26e4dcc35;hpb=9d1556507170bc827fca8ebbaa27862c978c6c33;p=swftools.git diff --git a/src/swfdump.c b/src/swfdump.c index c69d28f..f6da47a 100644 --- 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); - if(l < tag->len-1) { + if((l+1) < tag->len) { 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) ||