From 99680e288d579c1ab3c98e96ce4d42cc17d598ce Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Sat, 21 Jul 2007 00:36:34 +0000 Subject: zephyr (2.1.20070719.SNAPSHOT-1) unstable; urgency=low * new upstream, Closes: #433603 * byteswap port number for display in zwgc, Closes: #243101 * stick newline after errant error message, Closes: #242839 * wait for zhm to die when restarting. Closes: #41419 -- Karl Ramm Fri, 20 Jul 2007 13:23:48 -0400 --- zwgc/notice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zwgc') diff --git a/zwgc/notice.c b/zwgc/notice.c index e3d4cdb..4e09167 100644 --- a/zwgc/notice.c +++ b/zwgc/notice.c @@ -269,7 +269,7 @@ char *decode_notice(notice, hostname) var_set_variable("recipient", (notice->z_recipient[0] ? notice->z_recipient : "*")); var_set_variable("fullsender", notice->z_sender); - var_set_variable_to_number("port", (int)notice->z_port); + var_set_variable_to_number("port", (int)ntohs(notice->z_port)); var_set_variable_then_free_value("kind", z_kind_to_ascii(notice->z_kind)); var_set_variable_then_free_value("auth", z_auth_to_ascii(notice->z_auth)); -- cgit v1.2.3