Remove second "strlcat(buf, "\n", sizeof buf)"