Oh, those lines should be consistent.  Either `pack('NA*')` or `pack('N') + ...` on both