use _s_len in snprintf(%s) (close #6)