In contrib/telnet/telnetd/utility.c, fix a few warnings about format
strings not being literals. MFC after: 1 week
This commit is contained in:
parent
ff3879a34a
commit
1f8811efbc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228589
@ -847,22 +847,22 @@ printsub(char direction, unsigned char *pointer, int length)
|
|||||||
for (i = 2; i < length; i++ ) {
|
for (i = 2; i < length; i++ ) {
|
||||||
switch (pointer[i]) {
|
switch (pointer[i]) {
|
||||||
case NEW_ENV_VAR:
|
case NEW_ENV_VAR:
|
||||||
output_data("\" VAR " + noquote);
|
output_data("%s", "\" VAR " + noquote);
|
||||||
noquote = 2;
|
noquote = 2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NEW_ENV_VALUE:
|
case NEW_ENV_VALUE:
|
||||||
output_data("\" VALUE " + noquote);
|
output_data("%s", "\" VALUE " + noquote);
|
||||||
noquote = 2;
|
noquote = 2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ENV_ESC:
|
case ENV_ESC:
|
||||||
output_data("\" ESC " + noquote);
|
output_data("%s", "\" ESC " + noquote);
|
||||||
noquote = 2;
|
noquote = 2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ENV_USERVAR:
|
case ENV_USERVAR:
|
||||||
output_data("\" USERVAR " + noquote);
|
output_data("%s", "\" USERVAR " + noquote);
|
||||||
noquote = 2;
|
noquote = 2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user