From 6ea9c0b92e79880c3865eba388da0115955cb5f6 Mon Sep 17 00:00:00 2001 From: Brian Cox Date: Fri, 17 Mar 2017 18:38:56 -0700 Subject: [PATCH] fix debug builds in debug.cpp --- src/core/debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()