Mercurial > pidgin
changeset 28316:3397fb5f89cf
Null-terminate this string explicitly to avoid valgrind complaining.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 03 Oct 2009 03:25:05 +0000 |
parents | d9eb51a3a3a2 |
children | 97856e3452d0 2cc15ca3c26d |
files | libpurple/dnssrv.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/dnssrv.c Sat Oct 03 02:50:48 2009 +0000 +++ b/libpurple/dnssrv.c Sat Oct 03 03:25:05 2009 +0000 @@ -674,6 +674,7 @@ internal_query.type = T_SRV; 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 SRV resolver\n");