p[len -1] = '\0'