blob: fa7b08f23ed6cbf879602a7dc2afc1af0a8e3eb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
Description: Don't duplicate backslashes when displaying server banner
Origin: vendor, http://bugs.gentoo.org/show_bug.cgi?id=244222
Author: Michał Górny <gentoo@mgorny.alt.pl>
Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1533
Bug-Debian: http://bugs.debian.org/505378
Bug-Ubuntu: https://bugs.launchpad.net/bugs/425346
Bug-Gentoo: http://bugs.gentoo.org/show_bug.cgi?id=244222
Last-Update: 2010-02-27
Index: b/sshconnect2.c
===================================================================
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -472,7 +472,7 @@
if (len > 65536)
len = 65536;
msg = xmalloc(len * 4 + 1); /* max expansion from strnvis() */
- strnvis(msg, raw, len * 4 + 1, VIS_SAFE|VIS_OCTAL);
+ strnvis(msg, raw, len * 4 + 1, VIS_SAFE|VIS_OCTAL|VIS_NOSLASH);
fprintf(stderr, "%s", msg);
xfree(msg);
}
|