Skip to content

Commit

Permalink
Don't double-format in ReplyToCommand.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvander committed Dec 13, 2018
1 parent 3c1c6f6 commit 03b270c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/logic/smn_console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 03b270c

Please sign in to comment.