diff options
Diffstat (limited to 'lib/Utils/logging.cpp')
-rw-r--r-- | lib/Utils/logging.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Utils/logging.cpp b/lib/Utils/logging.cpp index 15104b8..58d14ee 100644 --- a/lib/Utils/logging.cpp +++ b/lib/Utils/logging.cpp @@ -46,7 +46,7 @@ void verror_msg(const char *s, va_list p, const char* strerr) if (prefix_len) { memmove(msg + prefix_len, msg, used); used += prefix_len; - strcpy(msg, msg_prefix); + memcpy(msg, msg_prefix, prefix_len); } if (strerr) { if (s[0]) { /* not perror_nomsg? */ |