MCPcopy Create free account
hub / github.com/WinMerge/winmerge / MyStrCpy

Function MyStrCpy

Externals/StackWalker/Main/StackWalker/StackWalker.cpp:243–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

StackWalker.cppFile · 0.85
OnCallstackEntryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected