replaced sprintf -> snprintf throughout.

This commit is contained in:
2022-11-05 20:16:44 +01:00
parent 44aacfca50
commit f3414f687c
27 changed files with 120 additions and 120 deletions

View File

@ -85,7 +85,7 @@ PDumpOutputHandler::~PDumpOutputHandler()
}
if (fProc->isRunning()) { // try low level kill
char cmd[128];
sprintf(cmd, "kill -9 %ld", fProcPID);
snprintf(cmd, sizeof(cnd), "kill -9 %ld", fProcPID);
system(cmd);
}
if (fProc) {