fix snprintf return miuse error