1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

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

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;