summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index df0ae91..0035948 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -19,7 +19,7 @@
#include <time.h>
#include "timer.h"
-
+#include "memops.hpp"
#include "strops.hpp"
#include "logger.hpp"
@@ -54,7 +54,7 @@ namespace logger {
char tmp[logger::MAX_LEN_LOG_TXT];
strops::format(tmp, logger::MAX_LEN_LOG_TXT, "[%s] %s", time_buf, g_log.history[g_log.write_cursor]);
tmp[logger::MAX_LEN_LOG_TXT-1] = 0;
- memcpy(g_log.history[g_log.write_cursor], tmp, logger::MAX_LEN_LOG_TXT);
+ memops::copy(g_log.history[g_log.write_cursor], tmp, logger::MAX_LEN_LOG_TXT);
g_log.write_cursor++;
if (g_log.write_cursor >= logger::MAX_LEN_LOG_HISTORY) g_log.write_cursor = 0;