Don't double-format in ReplyToCommand. (#932)
This commit is contained in:
parent
9a4fe1c475
commit
470486ba7e
@ -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