> Program received signal SIGSEGV, Segmentation fault.
> new_messagetable (rd=0x2aa1f8, memopt=0x50307d38) at newstruc.c:965
> 965 mep->length = BYTESWAP_WORD(mep->length);
> (gdb) bt
> #0 new_messagetable (rd=0x2aa1f8, memopt=0x50307d38) at newstruc.c:965
> #1 0x263f8 in yyparse () at ./parser.y:740
> #2 0x1b6c8 in main (argc=579584, argv=0x8d800) at wrc.c:679
> (gdb) quit
>
> Dunno what can go wrong in BYTESWAP_WORD, though, honestly.
what about an unaligned DWORD read ? (what's the value of mep, and the address of
&(mep->length)) ?
A+
--
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle