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