zscanner: fix snprintf return check

Change-Id: Ia8388c541fec44a17f284fc0e4c2aa83afa9b74f