Aug 24, 2022 at 7:12am
We never use strcpy(). This is C++, not some class-less hack like C!
Aug 24, 2022 at 7:29am
There was a reason why MS created a strcpy_s version before the C ISO committee did in C11.
Something the C++ ISO committee hasn't done yet.
Aug 24, 2022 at 9:35am
or just use snprintf()... Won't buffer overflow (if correct size given) and result will always be properly null-terminated.