From bd32956cba1f58ba95146f471804f979c4a05a62 Mon Sep 17 00:00:00 2001 From: dim Date: Fri, 16 Dec 2011 16:53:54 +0000 Subject: [PATCH] In contrib/telnet/telnetd/utility.c, fix a few warnings about format strings not being literals. MFC after: 1 week git-svn-id: http://svn0.us-east.freebsd.org/base/head/contrib/telnet@228589 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- telnetd/utility.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/telnetd/utility.c b/telnetd/utility.c index 54e2327..905fd3b 100644 --- a/telnetd/utility.c +++ b/telnetd/utility.c @@ -847,22 +847,22 @@ printsub(char direction, unsigned char *pointer, int length) for (i = 2; i < length; i++ ) { switch (pointer[i]) { case NEW_ENV_VAR: - output_data("\" VAR " + noquote); + output_data("%s", "\" VAR " + noquote); noquote = 2; break; case NEW_ENV_VALUE: - output_data("\" VALUE " + noquote); + output_data("%s", "\" VALUE " + noquote); noquote = 2; break; case ENV_ESC: - output_data("\" ESC " + noquote); + output_data("%s", "\" ESC " + noquote); noquote = 2; break; case ENV_USERVAR: - output_data("\" USERVAR " + noquote); + output_data("%s", "\" USERVAR " + noquote); noquote = 2; break;