Remove extra trailing NULs in sync packet