some strncpy/strncat fixes