Use strncpy/strncat for safety on more places.