Mercurial > pidgin.yaz
diff libpurple/dnssrv.c @ 29505:2cc15ca3c26d
propagate from branch 'im.pidgin.pidgin' (head d88831199cb010e3856ff07fccd05fc6be6b1e72)
to branch 'im.pidgin.pidgin.next.minor' (head 7b9059d9db3453ec4ab669b459b8403fe11363df)
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Sat, 03 Oct 2009 16:29:05 +0000 |
parents | 4e13885b1a6a 3397fb5f89cf |
children | 7819d3819f4c e4884dbf0c02 |
line wrap: on
line diff
--- a/libpurple/dnssrv.c Sun Sep 27 22:22:36 2009 +0000 +++ b/libpurple/dnssrv.c Sat Oct 03 16:29:05 2009 +0000 @@ -676,6 +676,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");