Merge pull request #345 from VoiDeD/fix-sizes-part-deux

Fix more buffer sizes for map names.
This commit is contained in:
Kyle Sanderson 2015-06-04 16:34:55 -07:00
commit a4f5c802a9
2 changed files with 4 additions and 4 deletions

View File

@ -201,7 +201,7 @@ public Action:Command_Nextmap(client, args)
if (client && !IsClientInGame(client))
return Plugin_Handled;
decl String:map[64];
decl String:map[PLATFORM_MAX_PATH];
GetNextMap(map, sizeof(map));
@ -289,7 +289,7 @@ public OnClientSayCommand_Post(client, const String:command[], const String:sArg
}
else if (strcmp(sArgs, "nextmap", false) == 0)
{
char map[32];
char map[PLATFORM_MAX_PATH];
GetNextMap(map, sizeof(map));
if (g_Cvar_TriggerShow.IntValue)

View File

@ -239,7 +239,7 @@ StartRTV()
if (EndOfMapVoteEnabled() && HasEndOfMapVoteFinished())
{
/* Change right now then */
new String:map[65];
new String:map[PLATFORM_MAX_PATH];
if (GetNextMap(map, sizeof(map)))
{
PrintToChatAll("[SM] %t", "Changing Maps", map);
@ -281,7 +281,7 @@ public Action:Timer_ChangeMap(Handle:hTimer)
LogMessage("RTV changing map manually");
new String:map[65];
new String:map[PLATFORM_MAX_PATH];
if (GetNextMap(map, sizeof(map)))
{
ForceChangeLevel(map, "RTV after mapvote");