fix buffer overflow

strcpy -> strncpy