Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Dec 2011 18:18:36 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228651 - head/contrib/telnet/telnet
Message-ID:  <201112171818.pBHIIalf071207@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Dec 17 18:18:36 2011
New Revision: 228651
URL: http://svn.freebsd.org/changeset/base/228651

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

Modified:
  head/contrib/telnet/telnet/utilities.c

Modified: head/contrib/telnet/telnet/utilities.c
==============================================================================
--- head/contrib/telnet/telnet/utilities.c	Sat Dec 17 17:21:47 2011	(r228650)
+++ head/contrib/telnet/telnet/utilities.c	Sat Dec 17 18:18:36 2011	(r228651)
@@ -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?201112171818.pBHIIalf071207>