termux-packages/root-packages/nethogs/inode2prog.cpp.patch

13 lines
427 B
Diff
Raw Normal View History

2016-06-13 23:11:31 +02:00
diff --git a/inode2prog.cpp b/inode2prog.cpp
index cfac566..4c1c4c5 100644
--- a/inode2prog.cpp
+++ b/inode2prog.cpp
@@ -117,7 +117,7 @@ std::string getprogname (pid_t pid) {
const int maxfilenamelen = 14 + MAX_PID_LENGTH + 1;
char filename[maxfilenamelen];
- std::snprintf(filename, maxfilenamelen, "/proc/%d/cmdline", pid);
+ snprintf(filename, maxfilenamelen, "/proc/%d/cmdline", pid);
return read_file(filename);
}