diff libpurple/protocols/bonjour/jabber.c @ 21440:d8106b63b0a4

I thought I was just fixing a leak in this commit, but it turns out I forgot to add the new files in the previous commit.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 12 Nov 2007 04:17:10 +0000
parents db7fa42845f6
children da75dd6c41fb
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/jabber.c	Mon Nov 12 03:41:20 2007 +0000
+++ b/libpurple/protocols/bonjour/jabber.c	Mon Nov 12 04:17:10 2007 +0000
@@ -1016,6 +1016,7 @@
 	return 0;
 }
 
+/* This returns a ';' delimited string containing all non-localhost IPs */
 char *
 purple_network_get_my_ip_ext2(int fd)
 {
@@ -1040,7 +1041,8 @@
 
 	if (fd < 0)
 		close(source);
-	memset(ip_ext, 0, 17 * 10);
+
+	memset(ip_ext, 0, sizeof(ip_ext));
 	memcpy(ip_ext, "0.0.0.0", 7);
 	tmp = buffer;
 	tip = ip_ext;