Fixed buffer overflow for cmdline strings of length >= 80
This commit is contained in:
@@ -165,7 +165,7 @@ Process * getProcess (unsigned long inode, const char * devicename)
|
||||
if (proc != NULL)
|
||||
return proc;
|
||||
|
||||
Process * newproc = new Process (inode, devicename, node->name);
|
||||
Process * newproc = new Process (inode, devicename, node->name.c_str());
|
||||
newproc->pid = node->pid;
|
||||
|
||||
char procdir [100];
|
||||
|
||||
Reference in New Issue
Block a user