[Avcheck] kavdaemon's recent version adds a ctrl-M!
Michael Tokarev
mjt@tls.msk.ru
Sat, 15 Mar 2003 23:48:35 +0300
This is a multi-part message in MIME format.
--------------090908000009030305010107
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Ralf Hildebrandt wrote:
> kavdaemon's recent version adds a ctrl-M in it's output, see:
[]
> It would be nice if that could be stripped.
Please tell me whenever the following patch (attached) fixes
the problem.
/mjt
--------------090908000009030305010107
Content-Type: text/plain;
name="kav.^M.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="kav.^M.diff"
--- avcheck.c.orig Sun Oct 27 16:26:45 2002
+++ avcheck.c Sat Mar 15 23:45:55 2003
@@ -503,6 +503,7 @@
if (t && t != n) {
memcpy(p, t, n - t);
p += n - t;
+ if (p[-1] == '\r') --p;
*p++ = '\n';
}
if (!*n)
--------------090908000009030305010107--