Fixed #260 with checks for strlcpy and strlcat