bug fix strncat only copies UP to, switch to using strncpy