AHAH! < ns = *(unsigned *)eh->f_nscns; < oh = *(unsigned *)eh->f_opthdr; --- > ns = *(unsigned short *)eh->f_nscns; > oh = *(unsigned short *)eh->f_opthdr; Stupid typo. Please try the new one and post results. Dan.