Cleaned. Replaced multiple strcpy/cat by g_strdup_printf. Replaced strncpy

* gnuslib.c: (connect_to_internet_server): Cleaned.
	* mountlist.c: (glibtop_get_mountlist_s): Replaced multiple strcpy/cat by
	g_strdup_printf. Replaced strncpy by g_strlcpy.
This commit is contained in:
Benoît Dejean
2004-06-06 21:58:51 +00:00
parent 45f2f19c3a
commit d8cb4ccdf7
3 changed files with 15 additions and 17 deletions

View File

@@ -241,7 +241,7 @@ connect_to_internet_server (const char *serverhost, u_short port)
char buf[512]; /* temporary buffer */
/* clear out address structures */
memset ((char *) &peeraddr_in, 0, sizeof (struct sockaddr_in));
memset (&peeraddr_in, 0, sizeof (struct sockaddr_in));
/* Set up the peer address to which we will connect. */
peeraddr_in.sin_family = AF_INET;