diff options
author | Benoît Dejean <bdejean@src.gnome.org> | 2004-06-06 22:07:44 +0000 |
---|---|---|
committer | Benoît Dejean <bdejean@src.gnome.org> | 2004-06-06 22:07:44 +0000 |
commit | 54fb1482ba60b53140f45c3a7937b3b7a5738d86 (patch) | |
tree | d5b4a813ab37e636fc5cf9065d02f5709593ce7d /sysdeps/linux/glibtop_server.h | |
parent | 2f87aa447956208a35a35300d56f4100bf028529 (diff) | |
download | libgtop-54fb1482ba60b53140f45c3a7937b3b7a5738d86.tar.gz |
Removed. Cleaned. Replaced unsafe strcpy by g_strlcpy.
* glibtop_machine.h (skip_token): Removed.
* glibtop_server.h (skip_multiple_token): Cleaned.
* netload.c: (glibtop_get_netload_s): Replaced unsafe strcpy by g_strlcpy.
* procmap.c: (glibtop_get_proc_map_s): s/strncpy/g_strlcpy/.
* procstate.c: (glibtop_get_proc_state_s): Likewise.
* sysinfo.c: (init_sysinfo): Cleaned.
Diffstat (limited to 'sysdeps/linux/glibtop_server.h')
-rw-r--r-- | sysdeps/linux/glibtop_server.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/linux/glibtop_server.h b/sysdeps/linux/glibtop_server.h index e40c6bc6..b8bcbb49 100644 --- a/sysdeps/linux/glibtop_server.h +++ b/sysdeps/linux/glibtop_server.h @@ -42,9 +42,9 @@ skip_token (const char *p) } static inline char * -skip_multiple_token (const char *p, int count) +skip_multiple_token (const char *p, size_t count) { - int i; + size_t i; for (i = 0; i < count; i++) p = skip_token (p); |