diff options
Diffstat (limited to 'sysdeps/linux')
-rw-r--r-- | sysdeps/linux/glibtop_server.h | 2 | ||||
-rw-r--r-- | sysdeps/linux/swap.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/linux/glibtop_server.h b/sysdeps/linux/glibtop_server.h index 7526b661..67bd9d38 100644 --- a/sysdeps/linux/glibtop_server.h +++ b/sysdeps/linux/glibtop_server.h @@ -52,7 +52,7 @@ static inline char * skip_line (const char *p) { while (*p != '\n') p++; - return (char *) p++; + return (char *) ++p; } static inline int diff --git a/sysdeps/linux/swap.c b/sysdeps/linux/swap.c index 0ee526c6..4699514e 100644 --- a/sysdeps/linux/swap.c +++ b/sysdeps/linux/swap.c @@ -69,7 +69,7 @@ glibtop_get_swap_s (glibtop *server, glibtop_swap *buf) buffer [len] = '\0'; p = skip_line (buffer); - p = skip_line (buffer); + p = skip_line (p); p = skip_token (p); /* "Swap:" */ buf->total = strtoul (p, &p, 0); |