Fix two small mistakes in snbuf