From 94a4be95fe9e6cb09570534849e48af44c25e245 Mon Sep 17 00:00:00 2001 From: Freeman-AM Date: Sun, 12 Oct 2014 02:11:07 +0200 Subject: [PATCH] Nextmap: replace len hardcoded content by charsmax and sizeof --- plugins/ns/nextmap.sma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ns/nextmap.sma b/plugins/ns/nextmap.sma index 854f0987..3aff535d 100755 --- a/plugins/ns/nextmap.sma +++ b/plugins/ns/nextmap.sma @@ -238,7 +238,7 @@ public sayNextMap(){ public sayNextMapTimeLeft(){ new szName[32], szText[128] get_cvar_string("amx_nextmap", szName, charsmax(szName)) - format(szText, 64, "Next Map: %s", szName) + format(szText, charsmax(szText), "Next Map: %s", szName) if (get_cvar_float("mp_timelimit")) { new a = get_timeleft()