From e0ed4c1a14af713ec080f58b420c4e5f115b0a03 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Mon, 15 Feb 2016 19:09:39 -0500 Subject: [PATCH] * LIB: Cleanup low hanging fruit with regards to cleaning up strcpy and strcat use. Use safe_strcpy and safe_strcat when dealing with non-pointer data types. --- lib/msg_log.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/msg_log.cpp b/lib/msg_log.cpp index 22977d8ce3..1e4881cabd 100644 --- a/lib/msg_log.cpp +++ b/lib/msg_log.cpp @@ -27,6 +27,7 @@ #endif #include "str_util.h" +#include "str_replace.h" #include "util.h" #include "msg_log.h" @@ -67,7 +68,7 @@ MSG_LOG::MSG_LOG(FILE* output_) { indent_level = 0; spaces[0] = 0; pid = 0; - strcpy(spaces+1, " "); + safe_strcpy(spaces+1, " "); } void MSG_LOG::enter_level(int diff) {