* 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.
This commit is contained in:
Rom Walton 2016-02-15 19:09:39 -05:00
parent 41e78d35da
commit e0ed4c1a14
1 changed files with 2 additions and 1 deletions

View File

@ -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) {