| 240 | #endif |
| 241 | |
| 242 | static void MyStrCpy(char* szDest, size_t nMaxDestSize, const char* szSrc) |
| 243 | { |
| 244 | if (nMaxDestSize <= 0) |
| 245 | return; |
| 246 | strncpy_s(szDest, nMaxDestSize, szSrc, _TRUNCATE); |
| 247 | // INFO: _TRUNCATE will ensure that it is null-terminated; |
| 248 | // but with older compilers (<1400) it uses "strncpy" and this does not!) |
| 249 | szDest[nMaxDestSize - 1] = 0; |
| 250 | } // MyStrCpy |
| 251 | |
| 252 | // Normally it should be enough to use 'CONTEXT_FULL' (better would be 'CONTEXT_ALL') |
| 253 | #define USED_CONTEXT_FLAGS CONTEXT_FULL |
no outgoing calls
no test coverage detected