snprintf is safer.