From 5c6b34b1d87a57fa194e419c9936dc87226832fc Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 2 Sep 2004 00:22:56 +0000 Subject: [PATCH] Fixed some bugs in CLang --- amxmodx/CLang.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/amxmodx/CLang.cpp b/amxmodx/CLang.cpp index 41da3025..3df81bf8 100755 --- a/amxmodx/CLang.cpp +++ b/amxmodx/CLang.cpp @@ -611,8 +611,6 @@ char * CLangMngr::FormatAmxString(AMX *amx, cell *params, int parm, int &len) while (tmpPtr-tmpString < sizeof(tmpString) && *tmpCell) *tmpPtr++ = *tmpCell++; - ZEROTERM(tmpString); - *tmpPtr = 0; sprintf(outptr, format, tmpString); ZEROTERM(outbuf); @@ -687,9 +685,9 @@ char * CLangMngr::FormatAmxString(AMX *amx, cell *params, int parm, int &len) { while (*src != 0 && ptr-format