Removed duplicated memset. Replaced strncpy by g_strlcpy.

* procdata.c: (glibtop_get_procdata_r): Removed duplicated memset.
	* procstate.c: (glibtop_get_proc_state_p): Replaced strncpy by g_strlcpy.
This commit is contained in:
Benoît Dejean
2004-06-06 21:25:24 +00:00
parent fe494bc846
commit 45f2f19c3a
3 changed files with 6 additions and 5 deletions

View File

@@ -63,8 +63,6 @@ glibtop_get_procdata_r (glibtop *server, glibtop_procdata *buf, pid_t pid)
task_t thistask;
int ret, info_count;
memset (buf, 0, sizeof (glibtop_procdata));
glibtop_init ();
memset (buf, 0, sizeof (glibtop_procdata));