pidgin/ljfisher-ssl-client-auth

4b77c9940154
Parents 8f2d0081358a
Children 2d566bd1f953
Change another hostname lookup fallback to use g_strlcpy.

Thanks to the Electronic Frontier Foundation (https://www.eff.org/) for
this patch.
--- a/libpurple/protocols/jabber/jabber.c Sun Jul 17 21:10:42 2011 +0000
+++ b/libpurple/protocols/jabber/jabber.c Sun Jul 17 21:14:23 2011 +0000
@@ -199,7 +199,7 @@
hostname, so maybe we want to detect that and use it
instead
*/
- strcpy(hostname, "localhost");
+ g_strlcpy(hostname, "localhost", sizeof(hostname));
}
hostname[sizeof(hostname) - 1] = '\0';