summaryrefslogtreecommitdiffstats
path: root/contrib/telnet
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-17 18:18:36 +0000
committerdim <dim@FreeBSD.org>2011-12-17 18:18:36 +0000
commitc98bc3558c0be9ae1a423c67c8beb91607b93dac (patch)
tree75910f51fe1396033d4ddc3f277b8d208fc8ee90 /contrib/telnet
parent04297626e548cde8b210bfa6fa8505396d09a969 (diff)
downloadFreeBSD-src-c98bc3558c0be9ae1a423c67c8beb91607b93dac.zip
FreeBSD-src-c98bc3558c0be9ae1a423c67c8beb91607b93dac.tar.gz
In contrib/telnet/telnet/utilities.c, fix a few warnings about format
strings not being literals. MFC after: 1 week
Diffstat (limited to 'contrib/telnet')
-rw-r--r--contrib/telnet/telnet/utilities.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/telnet/telnet/utilities.c b/contrib/telnet/telnet/utilities.c
index b0cfe37..8d1ea2a 100644
--- a/contrib/telnet/telnet/utilities.c
+++ b/contrib/telnet/telnet/utilities.c
@@ -782,7 +782,7 @@ printsub(char direction, unsigned char *pointer, int length)
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 *pointer, int length)
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;
OpenPOWER on IntegriCloud