It is unsafe, that is why you want to use the _s variant. But the _s you need to use a little differently, because you need to hand over the size.
Remember that C-style strings are null-terminated, so strcpy will copy until it finds a null-char.
Anyway, I suggest that you change your code to use C++ strings instead of working with bare C style char arrays.