From eb13918fc2bc190961d6b3938016ea8e988c7d62 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 24 Apr 2006 00:56:14 +0000 Subject: [PATCH] fix bad memory access in simple-procotol.c's debug output git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1196 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-daemon/simple-protocol.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/avahi-daemon/simple-protocol.c b/avahi-daemon/simple-protocol.c index 3cac713..740f78b 100644 --- a/avahi-daemon/simple-protocol.c +++ b/avahi-daemon/simple-protocol.c @@ -325,7 +325,7 @@ static void handle_line(Client *c, const char *s) { goto fail; client_output_printf(c, "+ Browsing ...\n"); - avahi_log_debug(__FILE__": Got %s request for '%s'.", cmd, arg); + avahi_log_debug(__FILE__": Got %s request.", cmd); } else if (strcmp(cmd, "BROWSE-DNS-SERVERS-IPV6") == 0 && n_args == 1) { c->state = CLIENT_BROWSE_DNS_SERVERS; @@ -333,7 +333,7 @@ static void handle_line(Client *c, const char *s) { goto fail; client_output_printf(c, "+ Browsing ...\n"); - avahi_log_debug(__FILE__": Got %s request for '%s'.", cmd, arg); + avahi_log_debug(__FILE__": Got %s request.", cmd); } else if (strcmp(cmd, "BROWSE-DNS-SERVERS") == 0 && n_args == 1) { c->state = CLIENT_BROWSE_DNS_SERVERS; @@ -341,7 +341,7 @@ static void handle_line(Client *c, const char *s) { goto fail; client_output_printf(c, "+ Browsing ...\n"); - avahi_log_debug(__FILE__": Got %s request for '%s'.", cmd, arg); + avahi_log_debug(__FILE__": Got %s request.", cmd); } else { client_output_printf(c, "%+i Invalid command \"%s\", try \"HELP\".\n", AVAHI_ERR_INVALID_OPERATION, cmd); -- 2.39.5