diff options
author | Martin Baulig <martin@src.gnome.org> | 1998-08-17 15:11:57 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-08-17 15:11:57 +0000 |
commit | 616f4f4eaf0d19e070f8a4d85396e0faceb35858 (patch) | |
tree | 6559050182eb35a60771cde7907153becf8390eb /sysdeps | |
parent | 513240b3506476d47d194f629d4b0ae3373727f1 (diff) | |
download | libgtop-616f4f4eaf0d19e070f8a4d85396e0faceb35858.tar.gz |
Small bug fixes.
Diffstat (limited to 'sysdeps')
-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); |