X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fswfdump.c;h=572e890583b637b924da25c500c2801ad399f329;hb=3cf7bdf11b3f690167c55c35fb21eb24018678dc;hp=d6905949d33adf5436729a3b7cb5ae161fc2782f;hpb=4472f3c1204955d8cd012f31a2cc37d3af9bdeb3;p=swftools.git diff --git a/src/swfdump.c b/src/swfdump.c index d690594..572e890 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -7,7 +7,7 @@ This file is distributed under the GPL, see file COPYING for details */ -#define HAVE_STAT +#include "../config.h" #ifdef HAVE_SYS_STAT_H #include @@ -229,7 +229,7 @@ void textcallback(int*glyphs, int nr, int fontid) a = glyphs[t]; } if(a>=32) - printf("%c", a,a); + printf("%c", a); else printf("\\x%x", (int)a); } @@ -415,9 +415,9 @@ int main (int argc,char ** argv) #ifdef HAVE_STAT fstat(f, &statbuf); - if(statbuf.st_size != swf.FileSize) + if(statbuf.st_size != swf.fileSize) dumperror("Real Filesize (%d) doesn't match header Filesize (%d)", - statbuf.st_size, swf.FileSize); + statbuf.st_size, swf.fileSize); #endif close(f);