Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jan 2012 21:06:07 +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: r229207 - stable/9/contrib/telnet/telnet
Message-ID:  <201201012106.q01L67q6030850@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sun Jan  1 21:06:07 2012
New Revision: 229207
URL: http://svn.freebsd.org/changeset/base/229207

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

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

Modified: stable/9/contrib/telnet/telnet/utilities.c
==============================================================================
--- stable/9/contrib/telnet/telnet/utilities.c	Sun Jan  1 20:59:42 2012	(r229206)
+++ stable/9/contrib/telnet/telnet/utilities.c	Sun Jan  1 21:06:07 2012	(r229207)
@@ -782,7 +782,7 @@ printsub(char direction, unsigned char *
 				    fprintf(NetTrace, "\" VAR " + noquote);
 			    } else
 #endif /* OLD_ENVIRON */
-				fprintf(NetTrace, "\" VALUE " + noquote);
+				fprintf(NetTrace, "%s", "\" VALUE " + noquote);
 			    noquote = 2;
 			    break;
 
@@ -798,17 +798,17 @@ printsub(char direction, unsigned char *
 				    fprintf(NetTrace, "\" VALUE " + noquote);
 			    } else
 #endif /* OLD_ENVIRON */
-				fprintf(NetTrace, "\" VAR " + noquote);
+				fprintf(NetTrace, "%s", "\" VAR " + noquote);
 			    noquote = 2;
 			    break;
 
 			case ENV_ESC:
-			    fprintf(NetTrace, "\" ESC " + noquote);
+			    fprintf(NetTrace, "%s", "\" ESC " + noquote);
 			    noquote = 2;
 			    break;
 
 			case ENV_USERVAR:
-			    fprintf(NetTrace, "\" USERVAR " + noquote);
+			    fprintf(NetTrace, "%s", "\" USERVAR " + noquote);
 			    noquote = 2;
 			    break;
 



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