svn commit: r229141 - stable/9/contrib/telnet/telnetd

Dimitry Andric dim at FreeBSD.org
Sat Dec 31 19:42:53 UTC 2011


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;
 


More information about the svn-src-stable-9 mailing list