From 264dd7a10d1d80f75532334d5f83df0d527e7e02 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 5 Oct 2004 19:29:35 +0000 Subject: [PATCH] Fixed error outputs for CLang --- amxmodx/CLang.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amxmodx/CLang.cpp b/amxmodx/CLang.cpp index 82995077..cdad7c57 100755 --- a/amxmodx/CLang.cpp +++ b/amxmodx/CLang.cpp @@ -498,7 +498,7 @@ int CLangMngr::GetKeyEntry(String &key) } #define CHECK_PTR(ptr, start, bufsize) if ((ptr) - (start) >= (bufsize)) { \ - AMXXLOG_Log("[AMXX] Buffer overflow in formatting (line %d, \"%s\")", amx->curline, g_plugins.findPluginFast(amx)->getName()); \ + LogError(amx, AMX_ERR_STACKERR, "Buffer overflow in string formatting"); \ outbuf[0] = 0; \ len = 0; \ return outbuf; } @@ -509,7 +509,7 @@ int CLangMngr::GetKeyEntry(String &key) { \ strcpy(outbuf, ""); \ len = 0; \ - AMXXLOG_Log("[AMXX] Plugin did not format a string correctly (parameter %d (total %d), line %d, \"%s\")", parm, paramCount, amx->curline, g_plugins.findPluginFast(amx)->getName()); \ + LogError(amx, AMX_ERR_PARAMS, "String formatted incorrectly - parameter %d (total %d)", parm, paramCount); \ return outbuf; \ }