diff options
Diffstat (limited to 'app-admin/procinfo-ng/files')
-rw-r--r-- | app-admin/procinfo-ng/files/procinfo-ng-2.0.304-wformat-security.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app-admin/procinfo-ng/files/procinfo-ng-2.0.304-wformat-security.patch b/app-admin/procinfo-ng/files/procinfo-ng-2.0.304-wformat-security.patch new file mode 100644 index 000000000000..315983c9af30 --- /dev/null +++ b/app-admin/procinfo-ng/files/procinfo-ng-2.0.304-wformat-security.patch @@ -0,0 +1,11 @@ +--- a/procinfo.cpp ++++ b/procinfo.cpp +@@ -211,7 +211,7 @@ int mainLoop(bool perSecond, bool showTotals, bool showTotalsMem, bool fullScree + try { + rows = getNetStats(perSecond, showTotals, skipIfaces, elapsed); + } catch (string exceptionMessage) { +- print(exceptionMessage.c_str()); ++ print("%s", exceptionMessage.c_str()); + } + print("\n"); + prettyPrint(rows, rowWidth, true); |