In contrib/telnet/telnet/utilities.c, fix a few warnings about format
strings not being literals. MFC after: 1 week
This commit is contained in:
parent
288fcda320
commit
e9db6b2474
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228651
@ -782,7 +782,7 @@ printsub(char direction, unsigned char *pointer, int length)
|
|||||||
fprintf(NetTrace, "\" VAR " + noquote);
|
fprintf(NetTrace, "\" VAR " + noquote);
|
||||||
} else
|
} else
|
||||||
#endif /* OLD_ENVIRON */
|
#endif /* OLD_ENVIRON */
|
||||||
fprintf(NetTrace, "\" VALUE " + noquote);
|
fprintf(NetTrace, "%s", "\" VALUE " + noquote);
|
||||||
noquote = 2;
|
noquote = 2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -798,17 +798,17 @@ printsub(char direction, unsigned char *pointer, int length)
|
|||||||
fprintf(NetTrace, "\" VALUE " + noquote);
|
fprintf(NetTrace, "\" VALUE " + noquote);
|
||||||
} else
|
} else
|
||||||
#endif /* OLD_ENVIRON */
|
#endif /* OLD_ENVIRON */
|
||||||
fprintf(NetTrace, "\" VAR " + noquote);
|
fprintf(NetTrace, "%s", "\" VAR " + noquote);
|
||||||
noquote = 2;
|
noquote = 2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ENV_ESC:
|
case ENV_ESC:
|
||||||
fprintf(NetTrace, "\" ESC " + noquote);
|
fprintf(NetTrace, "%s", "\" ESC " + noquote);
|
||||||
noquote = 2;
|
noquote = 2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ENV_USERVAR:
|
case ENV_USERVAR:
|
||||||
fprintf(NetTrace, "\" USERVAR " + noquote);
|
fprintf(NetTrace, "%s", "\" USERVAR " + noquote);
|
||||||
noquote = 2;
|
noquote = 2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user