# HG changeset patch # User Paul Aurich # Date 1255454678 0 # Node ID e191f5fedce187b175ef59d92989803cb5786232 # Parent d54834e7ad0f8e844e12cc040b1f19e306e6ec02 Shut up valgrind ("unitialized bytes(s)...") and changelog. diff -r d54834e7ad0f -r e191f5fedce1 ChangeLog --- a/ChangeLog Tue Oct 13 17:23:00 2009 +0000 +++ b/ChangeLog Tue Oct 13 17:24:38 2009 +0000 @@ -23,6 +23,7 @@ * Fix a crash when performing DNS queries on Unixes that use the blocking DNS lookups. (Brian Lu) * Fix building the GnuTLS plugin with older versions of GnuTLS. + * Fix DNS TXT query resolution. Finch: * The TinyURL plugin now creates shorter URLs for long non-conversation diff -r d54834e7ad0f -r e191f5fedce1 libpurple/dnssrv.c --- a/libpurple/dnssrv.c Tue Oct 13 17:23:00 2009 +0000 +++ b/libpurple/dnssrv.c Tue Oct 13 17:24:38 2009 +0000 @@ -809,6 +809,7 @@ internal_query.type = T_TXT; strncpy(internal_query.query, query, 255); + internal_query.query[255] = '\0'; if (write(in[1], &internal_query, sizeof(internal_query)) < 0) purple_debug_error("dnssrv", "Could not write to TXT resolver\n");