From: kramm Date: Sun, 5 Sep 2004 15:57:18 +0000 (+0000) Subject: fixed big-endian problems. X-Git-Tag: xpdf-3-00~39 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;ds=sidebyside;h=23a9d901ffe61f838710c065ce0cb6b9eec730b3;p=swftools.git fixed big-endian problems. --- diff --git a/lib/modules/swfaction.c b/lib/modules/swfaction.c index eb876d6..83ae836 100644 --- a/lib/modules/swfaction.c +++ b/lib/modules/swfaction.c @@ -354,7 +354,7 @@ void swf_DumpActions(ActionTAG*atag, char*prefix) #endif } break; case 'C': { - poollen = *(U16*)data; + poollen = data[0]+256*data[1]; entry = 0; printf("(%d entries)", poollen); } break; @@ -576,7 +576,7 @@ int swf_ActionEnumerate(ActionTAG*atag, char*(*callback)(char*), int type) } } break; case 'C': { - poollen = (*(U16*)data); + poollen = (data[0]+256*data[1]); } break; case 'o': { } break;