summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0ae43c4)
Return value of read_file_contents() was checked incorrectly.
snprintf(path, sizeof (path), "/proc/%i/psinfo", pid);
status = read_file_contents (path, (void *) &info, sizeof (info));
snprintf(path, sizeof (path), "/proc/%i/psinfo", pid);
status = read_file_contents (path, (void *) &info, sizeof (info));
- if (status != ((int) buffer_size))
+ if (status != sizeof (info))
{
ERROR ("processes plugin: Unexpected return value "
"while reading \"%s\": "
{
ERROR ("processes plugin: Unexpected return value "
"while reading \"%s\": "