From: wessels <> Date: Sat, 19 Jul 1997 10:25:38 +0000 (+0000) Subject: we can't have sprintf() munging '\r'!!!! X-Git-Tag: SQUID_3_0_PRE1~4858 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f2a25990362c36fa53fc5c7aeaf86e83d1e04ff;p=thirdparty%2Fsquid.git we can't have sprintf() munging '\r'!!!! --- diff --git a/lib/snprintf.c b/lib/snprintf.c index 34a04015a3..75bb686127 100644 --- a/lib/snprintf.c +++ b/lib/snprintf.c @@ -336,7 +336,7 @@ static void dopr_outch(c) int c; { - if (iscntrl(c) && c != '\n' && c != '\t') { + if (iscntrl(c) && c != '\n' && c != '\t' && c != '\r') { c = '@' + (c & 0x1F); if (end == 0 || output < end) { *output++ = '^';