Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/jabber.c @ 32237:514092c20438
Change another hostname lookup fallback to use g_strlcpy.
Thanks to the Electronic Frontier Foundation (https://www.eff.org/) for
this patch.
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Sun, 17 Jul 2011 21:14:23 +0000 |
parents | 4f1bd59cb90a |
children | ac43f26c7f61 |
line wrap: on
line diff
--- 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';