summaryrefslogtreecommitdiff
path: root/plugins/helpers/gen_helpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/helpers/gen_helpers.cpp')
-rw-r--r--plugins/helpers/gen_helpers.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/helpers/gen_helpers.cpp b/plugins/helpers/gen_helpers.cpp
index fe2640ae0d..d076626c15 100644
--- a/plugins/helpers/gen_helpers.cpp
+++ b/plugins/helpers/gen_helpers.cpp
@@ -81,12 +81,12 @@ int AddDebugLogMessageA(const char* fmt, ...)
va_list va;
va_start(va,fmt);
- mir_vsnprintf(szText, sizeof(szText), fmt, va);
+ mir_vsnprintf(szText, SIZEOF(szText), fmt, va);
va_end(va);
#ifdef MODULENAME
- mir_snprintf(szFinal, sizeof(szFinal), "%s: %s", MODULENAME, szText);
+ mir_snprintf(szFinal, SIZEOF(szFinal), "%s: %s", MODULENAME, szText);
#else
- strncpy(szFinal, szText, sizeof(szFinal));
+ strncpy(szFinal, szText, SIZEOF(szFinal));
#endif
res = WriteToDebugLogA(szFinal);