Fixed buffer overflow for cmdline strings of length >= 80

This commit is contained in:
Corbin Hughes
2015-10-04 02:54:24 -05:00
parent 580c412099
commit e798b3e3ce
3 changed files with 56 additions and 40 deletions

View File

@@ -1,4 +1,4 @@
/*
/*
* inode2prog.h
*
* Copyright (c) 2005,2008 Arnout Engelen
@@ -30,13 +30,13 @@
struct prg_node {
long inode;
pid_t pid;
char * name;
std::string name;
};
struct prg_node * findPID (unsigned long inode);
void prg_cache_clear();
// reread the inode-to-prg_node-mapping
void reread_mapping ();