diff options
author | Armin Kuster <akuster808@gmail.com> | 2023-11-15 08:26:09 -0500 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-11-15 09:51:45 -0800 |
commit | 4c1e6d32ba6e9a14937a83f0d9375ef4d0b28057 (patch) | |
tree | 17fdf66e3039dd2b0c2c54ee61f6da105aced1af /meta-networking/recipes-netkit/netkit-telnet/files/0001-telnet-telnetd-Fix-print-format-strings.patch | |
parent | 237ce297fa021bd6798ee3ecdc31f716442e4d37 (diff) | |
download | meta-openembedded-4c1e6d32ba6e9a14937a83f0d9375ef4d0b28057.tar.gz |
netkit: Drop old and no upstream
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-netkit/netkit-telnet/files/0001-telnet-telnetd-Fix-print-format-strings.patch')
-rw-r--r-- | meta-networking/recipes-netkit/netkit-telnet/files/0001-telnet-telnetd-Fix-print-format-strings.patch | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/meta-networking/recipes-netkit/netkit-telnet/files/0001-telnet-telnetd-Fix-print-format-strings.patch b/meta-networking/recipes-netkit/netkit-telnet/files/0001-telnet-telnetd-Fix-print-format-strings.patch deleted file mode 100644 index 755b882b67..0000000000 --- a/meta-networking/recipes-netkit/netkit-telnet/files/0001-telnet-telnetd-Fix-print-format-strings.patch +++ /dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | From 7a3095d1e9b7c73f9dca56250f433bcfc7cb660e Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 27 Jun 2017 10:15:34 -0700 | ||
4 | Subject: [PATCH] telnet/telnetd: Fix print format strings | ||
5 | |||
6 | Fixes build with hardening flags | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | Upstream-Status: Pending | ||
11 | |||
12 | telnet/utilities.cc | 6 +++--- | ||
13 | telnetd/utility.c | 6 +++--- | ||
14 | 2 files changed, 6 insertions(+), 6 deletions(-) | ||
15 | |||
16 | diff --git a/telnet/utilities.cc b/telnet/utilities.cc | ||
17 | index 66839ab..36f0731 100644 | ||
18 | --- a/telnet/utilities.cc | ||
19 | +++ b/telnet/utilities.cc | ||
20 | @@ -583,17 +583,17 @@ void printsub(int direction, unsigned char *pointer, int length) { | ||
21 | case ENV_VAR: | ||
22 | if (pointer[1] == TELQUAL_SEND) | ||
23 | goto def_case; | ||
24 | - fprintf(NetTrace, "\" VAR " + noquote); | ||
25 | + fprintf(NetTrace, "%s", "\" VAR " + noquote); | ||
26 | noquote = 2; | ||
27 | break; | ||
28 | |||
29 | case ENV_VALUE: | ||
30 | - fprintf(NetTrace, "\" VALUE " + noquote); | ||
31 | + fprintf(NetTrace, "%s", "\" VALUE " + noquote); | ||
32 | noquote = 2; | ||
33 | break; | ||
34 | |||
35 | case ENV_ESC: | ||
36 | - fprintf(NetTrace, "\" ESC " + noquote); | ||
37 | + fprintf(NetTrace, "%s", "\" ESC " + noquote); | ||
38 | noquote = 2; | ||
39 | break; | ||
40 | |||
41 | diff --git a/telnetd/utility.c b/telnetd/utility.c | ||
42 | index 29b7da1..75314cb 100644 | ||
43 | --- a/telnetd/utility.c | ||
44 | +++ b/telnetd/utility.c | ||
45 | @@ -909,17 +909,17 @@ printsub(char direction, unsigned char *pointer, int length) | ||
46 | case ENV_VAR: | ||
47 | if (pointer[1] == TELQUAL_SEND) | ||
48 | goto def_case; | ||
49 | - netoprintf("\" VAR " + noquote); | ||
50 | + netoprintf("%s", "\" VAR " + noquote); | ||
51 | noquote = 2; | ||
52 | break; | ||
53 | |||
54 | case ENV_VALUE: | ||
55 | - netoprintf("\" VALUE " + noquote); | ||
56 | + netoprintf("%s", "\" VALUE " + noquote); | ||
57 | noquote = 2; | ||
58 | break; | ||
59 | |||
60 | case ENV_ESC: | ||
61 | - netoprintf("\" ESC " + noquote); | ||
62 | + netoprintf("%s", "\" ESC " + noquote); | ||
63 | noquote = 2; | ||
64 | break; | ||
65 | |||
66 | -- | ||
67 | 2.13.2 | ||
68 | |||