In contrib/telnet/telnetd/utility.c, fix a few warnings about format
strings not being literals. MFC after: 1 week git-svn-id: http://svn0.us-east.freebsd.org/base/head/contrib/telnet@228589 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
This commit is contained in:
parent
d107e99829
commit
bd32956cba
|
@ -847,22 +847,22 @@ printsub(char direction, unsigned char *pointer, int length)
|
|||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue