Fixed a broken sizeof ().

This commit is contained in:
Martin Baulig
1999-05-03 12:17:56 +00:00
parent aa6f26f9fb
commit a2a4b1d170

View File

@@ -110,7 +110,7 @@ glibtop_get_proc_status_s(glibtop *server, struct pstatus *pstatus, pid_t pid)
glibtop_warn_io_r(server, "open (%s)", buffer);
return -1;
}
if(pread(fd, pstatus, sizeof(struct pstatus), 0) != sizeof(struct prcred))
if(pread(fd, pstatus, sizeof(struct pstatus), 0) != sizeof(struct pstatus))
{
close(fd);
glibtop_warn_io_r(server, "pread (%s)", buffer);