何で駄目なのかはわかる?

strcpy(name, "hoge.txt") とか?
strncpy(name, sizeof(name) - 1, "hoge.txt")か