processes: Fix ps_get_cmdline() on Solaris.
[collectd.git] / src / processes.c
index d6b4845..8dd43e8 100644 (file)
@@ -1205,7 +1205,7 @@ static const char *ps_get_cmdline (pid_t pid, /* {{{ */
        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\": "