mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
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++ ) {
|
||||
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 a new issue