try to fix build failure due to increased number of build files on some build commands (=> more log files)

This commit is contained in:
frtabu
2019-03-08 19:38:21 +01:00
parent c9dcaa53af
commit 49f4bdc2e5
5 changed files with 225 additions and 82 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ struct dirent *entry;
{
if(entry->d_name[0] == '.')
continue;
snprintf(aname, sizeof(aname), "/proc/%d/task/%s/stat", getpid(),entry->d_name);
snprintf(aname, sizeof(aname), "/proc/%d/task/%.*s/stat", getpid(),(int)(sizeof(aname)-24),entry->d_name);
read_statfile(aname,debug,prnt);
} /* while entry != NULL */
closedir(proc_dir);