bombomby / optick

C++ Profiler For Games
https://optick.dev
MIT License
2.92k stars 293 forks source link

Fix warning C4996 - This function or variable may be unsafe #145

Closed ymartel06 closed 2 years ago

ymartel06 commented 2 years ago

Hi,

When I compile optick with a specific project using MSVC and enable warnings level 3, I can see: Fix warning C4996: 'strcpy': This function or variable may be unsafe. Fix warning C4996: 'strcat': This function or variable may be unsafe.

So instead of using the unsafe strcpy and strcat, let's use strcpy_s and strcat_s.

-Yohann