| 232 | #endif |
| 233 | |
| 234 | static void MyStrCpy(char* szDest, size_t nMaxDestSize, const char* szSrc) |
| 235 | { |
| 236 | if (nMaxDestSize <= 0) return; |
| 237 | if (strlen(szSrc) < nMaxDestSize) |
| 238 | { |
| 239 | strcpy_s(szDest, nMaxDestSize, szSrc); |
| 240 | } |
| 241 | else |
| 242 | { |
| 243 | strncpy_s(szDest, nMaxDestSize, szSrc, nMaxDestSize); |
| 244 | szDest[nMaxDestSize-1] = 0; |
| 245 | } |
| 246 | } // MyStrCpy |
| 247 | |
| 248 | // Normally it should be enough to use 'CONTEXT_FULL' (better would be 'CONTEXT_ALL') |
| 249 | #define USED_CONTEXT_FLAGS CONTEXT_FULL |
no outgoing calls
no test coverage detected