Permalink
Browse files

Don't double-format in ReplyToCommand. (#932)

  • Loading branch information...
dvander committed Dec 13, 2018
1 parent 9a4fe1c commit 470486ba7e60867920bad014d25c46bb2ba75473
Showing with 1 addition and 2 deletions.
  1. +1 −2 core/logic/smn_console.cpp
@@ -267,8 +267,7 @@ static cell_t ReplyToCommand(IPluginContext *pContext, const cell_t *params)
size_t len;
{
DetectExceptions eh(pContext);
g_pSM->FormatString(buffer, sizeof(buffer), pContext, params, 2);
len = g_pSM->FormatString(buffer, sizeof(buffer) - 2, pContext, params, 2);
len = g_pSM->FormatString(buffer, sizeof(buffer) - 1, pContext, params, 2);
if (eh.HasException())
return 0;
}

0 comments on commit 470486b

Please sign in to comment.