Don't double-format in ReplyToCommand.
This commit is contained in:
parent
3c1c6f6c79
commit
03b270cf18
@ -267,8 +267,7 @@ static cell_t ReplyToCommand(IPluginContext *pContext, const cell_t *params)
|
|||||||
size_t len;
|
size_t len;
|
||||||
{
|
{
|
||||||
DetectExceptions eh(pContext);
|
DetectExceptions eh(pContext);
|
||||||
g_pSM->FormatString(buffer, sizeof(buffer), pContext, params, 2);
|
len = g_pSM->FormatString(buffer, sizeof(buffer) - 1, pContext, params, 2);
|
||||||
len = g_pSM->FormatString(buffer, sizeof(buffer) - 2, pContext, params, 2);
|
|
||||||
if (eh.HasException())
|
if (eh.HasException())
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user