Don't double-format in ReplyToCommand.

This commit is contained in:
David Anderson 2018-12-12 23:16:36 -08:00
parent 3c1c6f6c79
commit 03b270cf18

View File

@ -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;
}