Replaced strcpy() with strncpy()