1
Description: Format string is not a string literal.
2
Hardened builds are failing due to "-Werror=format-security".
3
Insertion of a trivial format string resolves the failure.
4
Author: Mats Erik Andersson <debian@gisladisker.se>
6
Last-Update: 2015-01-09
8
--- netkit-telnet-0.17/telnetd/utility.c.orig 2015-01-09 20:22:23.000000000 +0100
9
+++ netkit-telnet-0.17/telnetd/utility.c 2015-01-09 23:11:41.695499612 +0100
12
if (pointer[1] == TELQUAL_SEND)
14
- netoprintf("\" VAR " + noquote);
15
+ netoprintf("%s", "\" VAR " + noquote);
20
- netoprintf("\" VALUE " + noquote);
21
+ netoprintf("%s", "\" VALUE " + noquote);
26
- netoprintf("\" ESC " + noquote);
27
+ netoprintf("%s", "\" ESC " + noquote);
31
--- netkit-telnet-0.17/telnet/utilities.cc.orig 2015-01-09 20:22:23.000000000 +0100
32
+++ netkit-telnet-0.17/telnet/utilities.cc 2015-01-09 23:33:05.219513739 +0100
35
if (pointer[1] == TELQUAL_SEND)
37
- fprintf(NetTrace, "\" VAR " + noquote);
38
+ fprintf(NetTrace, "%s", "\" VAR " + noquote);
43
- fprintf(NetTrace, "\" VALUE " + noquote);
44
+ fprintf(NetTrace, "%s", "\" VALUE " + noquote);
49
- fprintf(NetTrace, "\" ESC " + noquote);
50
+ fprintf(NetTrace, "%s", "\" ESC " + noquote);