Permalink
Browse files

Don't double-format in ReplyToCommand.

  • Loading branch information...
dvander committed Dec 13, 2018
1 parent 3c1c6f6 commit 03b270cf18034ad60b270fdfb5721b06cc2d3928
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 03b270c

Please sign in to comment.