Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 2011 19:42:53 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229141 - stable/9/contrib/telnet/telnetd
Message-ID:  <201112311942.pBVJgrY0079687@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Dec 31 19:42:52 2011
New Revision: 229141
URL: http://svn.freebsd.org/changeset/base/229141

Log:
  MFC r228589:
  
  In contrib/telnet/telnetd/utility.c, fix a few warnings about format
  strings not being literals.

Modified:
  stable/9/contrib/telnet/telnetd/utility.c
Directory Properties:
  stable/9/contrib/telnet/   (props changed)

Modified: stable/9/contrib/telnet/telnetd/utility.c
==============================================================================
--- stable/9/contrib/telnet/telnetd/utility.c	Sat Dec 31 19:36:11 2011	(r229140)
+++ stable/9/contrib/telnet/telnetd/utility.c	Sat Dec 31 19:42:52 2011	(r229141)
@@ -847,22 +847,22 @@ printsub(char direction, unsigned char *
 		    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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112311942.pBVJgrY0079687>