diff --git a/lib/procinfo_unix.cpp b/lib/procinfo_unix.cpp index 11d4ec7a9f..441a161397 100644 --- a/lib/procinfo_unix.cpp +++ b/lib/procinfo_unix.cpp @@ -104,7 +104,7 @@ struct PROC_STAT { int PROC_STAT::parse(char* buf) { int n = sscanf(buf, - "%d (%s %c %d %d %d %d %d " + "%d (%[^)]) %c %d %d %d %d %d " "%lu %lu %lu %lu %lu %lu %lu " "%d %d %d %d %d %d " "%lu %lu " @@ -152,8 +152,6 @@ int PROC_STAT::parse(char* buf) { &processor ); if (n == 39) { - char* p = strchr(comm, ')'); - if (p) *p = 0; return 0; }