Merged a few bug fixes from the HEAD.

This commit is contained in:
Martin Baulig
1999-05-03 20:06:40 +00:00
parent 293995a277
commit 70b65c05e5
74 changed files with 6070 additions and 77 deletions

View File

@@ -64,11 +64,13 @@ init_sysinfo (glibtop *server)
p = strchr (buffer, ':');
if (!p) continue;
/* Remove leading spaces from `p'. */
*p = '\0'; start = p; p++;
while (isspace (*p)) p++;
while ((start > buffer) && isspace (*start))
/* Remove trailing spaces from `buffer'. */
while ((start > buffer) && (*start) && isspace (*start))
*start-- = '\0';
key = g_strdup (buffer);