diff options
Diffstat (limited to 'lib/Core/ExecutorTimers.cpp')
-rw-r--r-- | lib/Core/ExecutorTimers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Core/ExecutorTimers.cpp b/lib/Core/ExecutorTimers.cpp index 22429221..e1d6684d 100644 --- a/lib/Core/ExecutorTimers.cpp +++ b/lib/Core/ExecutorTimers.cpp @@ -117,7 +117,7 @@ void Executor::processTimers(ExecutionState *current, if (ticks || dumpPTree || dumpStates) { if (dumpPTree) { char name[32]; - sprintf(name, "ptree%08d.dot", (int) stats::instructions); + snprintf(name, sizeof(name), "ptree%08d.dot", (int) stats::instructions); auto os = interpreterHandler->openOutputFile(name); if (os) { processTree->dump(*os); |