diff --git a/src/core/debug.cpp b/src/core/debug.cpp index 6870b7d..7c285bb 100644 --- a/src/core/debug.cpp +++ b/src/core/debug.cpp @@ -63,7 +63,7 @@ cDebug::cDebug(const char* label) cDebug::cDebug(const cDebug &rhs) { - strcpy(mLabel, rhs.mLabel, MAX_LABEL); + strncpy(mLabel, rhs.mLabel, MAX_LABEL); } cDebug::~cDebug()