ui: Make some stack variables bigger so the compiler stops complaining
Need to get rid of those huge stack vars, but they should be ok for now Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
This commit is contained in:
parent
e97714ca02
commit
b282bbfd23
|
@ -371,13 +371,13 @@ int main(int argc, char **argv)
|
|||
DIR *dir = opendir("/proc");
|
||||
if(dir) {
|
||||
struct dirent *entry;
|
||||
char cmdfile[64];
|
||||
char cmdfile[512];
|
||||
char cmdstring[256];
|
||||
cmdstring[255] = '\0';
|
||||
do {
|
||||
entry = readdir(dir);
|
||||
if(entry) {
|
||||
snprintf(cmdfile, 64, "/proc/%s/cmdline", entry->d_name);
|
||||
snprintf(cmdfile, 512, "/proc/%s/cmdline", entry->d_name);
|
||||
FILE *f = fopen(cmdfile, "r");
|
||||
if(f == NULL) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue