summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1998-08-17 15:11:57 +0000
committerMartin Baulig <martin@src.gnome.org>1998-08-17 15:11:57 +0000
commit616f4f4eaf0d19e070f8a4d85396e0faceb35858 (patch)
tree6559050182eb35a60771cde7907153becf8390eb
parent513240b3506476d47d194f629d4b0ae3373727f1 (diff)
downloadlibgtop-616f4f4eaf0d19e070f8a4d85396e0faceb35858.tar.gz
Small bug fixes.
-rw-r--r--sysdeps/linux/glibtop_server.h2
-rw-r--r--sysdeps/linux/swap.c2
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);