strncpy also only UP to n bytes, now using memcpy