blob: 315983c9af309944e582fff284a32fc7839b0b60 (
plain)
1
2
3
4
5
6
7
8
9
10
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);
|