This file is distributed under the GPL, see file COPYING for details */
-#define HAVE_STAT
+#include "../config.h"
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
a = glyphs[t];
}
if(a>=32)
- printf("%c", a,a);
+ printf("%c", a);
else
printf("\\x%x", (int)a);
}
#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);
printf(" %s-=> ",prefix);
for(t=0;t<tag->len;t++) {
printf("%02x ", tag->data[t]);
- if((t && !(t&15)) || (t==tag->len-1))
+ if((t && ((t&15)==15)) || (t==tag->len-1))
{
if(t==tag->len-1)
printf("\n");