MCPcopy Create free account
hub / github.com/KDAB/GammaRay / MyStrCpy

Function MyStrCpy

3rdparty/StackWalker/StackWalker.cpp:242–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240#endif
241
242static 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

Callers 2

StackWalker.cppFile · 0.85
OnCallstackEntryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected