changeset 28375:e191f5fedce1

Shut up valgrind ("unitialized bytes(s)...") and changelog.
author Paul Aurich <paul@darkrain42.org>
date Tue, 13 Oct 2009 17:24:38 +0000
parents d54834e7ad0f
children 5550823608cb
files ChangeLog libpurple/dnssrv.c
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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");