mirror of https://github.com/BOINC/boinc.git
* 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:
parent
41e78d35da
commit
e0ed4c1a14
|
@ -27,6 +27,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "str_util.h"
|
#include "str_util.h"
|
||||||
|
#include "str_replace.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
#include "msg_log.h"
|
#include "msg_log.h"
|
||||||
|
@ -67,7 +68,7 @@ MSG_LOG::MSG_LOG(FILE* output_) {
|
||||||
indent_level = 0;
|
indent_level = 0;
|
||||||
spaces[0] = 0;
|
spaces[0] = 0;
|
||||||
pid = 0;
|
pid = 0;
|
||||||
strcpy(spaces+1, " ");
|
safe_strcpy(spaces+1, " ");
|
||||||
}
|
}
|
||||||
|
|
||||||
void MSG_LOG::enter_level(int diff) {
|
void MSG_LOG::enter_level(int diff) {
|
||||||
|
|
Loading…
Reference in New Issue