# HG changeset patch # User Ethan Blanton # Date 1310937263 0 # Node ID 514092c20438c40c0558995ef7c2cc04c1893d3a # Parent 5f6bbe89d873be45f3cfabc1c715845c332ea2d5 Change another hostname lookup fallback to use g_strlcpy. Thanks to the Electronic Frontier Foundation (https://www.eff.org/) for this patch. diff -r 5f6bbe89d873 -r 514092c20438 libpurple/protocols/jabber/jabber.c --- 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';