fixed strncpy bug in exercise 17