fix misunderstanding for return value of snprintf, where it matters.