i have a problem.
i tried to proceede the following steps:
char * str;
char * s="Hello";
int len = std::strlen(s);
str=new char[len +10];
strcpy_s(str,sizeof(str) ,s);
But the programm displays the error, which i write in the title.
If i replace the sizeof(str) with a number, for example 256, a pop up window appear with the message project.exe has triggered a breakpoint.
How can i solve this errors with strcpy_s?? Thank you!