pidgin: 640ec3bb: Change another hostname lookup fallback ...
elb at pidgin.im
elb at pidgin.im
Thu Aug 11 10:51:36 EDT 2011
----------------------------------------------------------------------
Revision: 640ec3bbeb94c0991a3f6d2fb16d9074cc2aad57
Parent: 89255b1077e1842abfc8a95aaa075f01fce9c77c
Author: elb at pidgin.im
Date: 07/17/11 17:14:23
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/640ec3bbeb94c0991a3f6d2fb16d9074cc2aad57
Changelog:
Change another hostname lookup fallback to use g_strlcpy.
Thanks to the Electronic Frontier Foundation (https://www.eff.org/) for
this patch.
Changes against parent 89255b1077e1842abfc8a95aaa075f01fce9c77c
patched libpurple/protocols/jabber/jabber.c
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jabber.c 2513198aedc5af8cea0e17ad8c30ea9f06614954
+++ libpurple/protocols/jabber/jabber.c 3536df017e1dc8f1a8a440f478bb002b5ebb899b
@@ -199,7 +199,7 @@ static char *jabber_prep_resource(char *
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';
More information about the Commits
mailing list