From 616f4f4eaf0d19e070f8a4d85396e0faceb35858 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Mon, 17 Aug 1998 15:11:57 +0000 Subject: [PATCH] Small bug fixes. --- sysdeps/linux/glibtop_server.h | 2 +- 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);