dtprintinfo: correct another possible buffer overflow

This commit is contained in:
Jon Trulson 2019-05-06 18:23:36 -06:00
parent 30cd56ac38
commit 05d231606e
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ int Queue::Stop(BaseObj *obj, char **output, BaseObj * /*requestor*/)
else
#endif
{
sprintf(command, STOP_QUEUE_CMD, queue->Name());
snprintf(command, 100, STOP_QUEUE_CMD, queue->Name());
rc = queue->RunCommand(command, NULL, output);
}
delete [] command;