delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/26/07:28:41

X-Spam-Check-By: sourceware.org
Date: Thu, 26 Apr 2007 13:28:17 +0200
From: "S. Schulz" <teleschu AT gmx DOT net>
Message-ID: <20070426112817.301360@gmx.net>
MIME-Version: 1.0
Subject: Patch for syslog-ng 1.6.12
To: cygwin AT cygwin DOT com
X-Authenticated: #31247417
X-Flags: 0001
X-Mailer: WWW-Mail 6100 (Global Message Exchange)
X-GMX-UID: tP1ZKcpNMydhdm6ZtmtlfrpjaGRhZprW
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

I found a bug in syslog-ng-1.6.12.
If i use the MSGONLY macro the first char of the message is missing.
 
Here is the patch:
-snip--------------------------------
426,427c426,428
<             colon++;
<             ofs = (colon - (char *) msg->msg->data);
---
>             ofs = (colon - (char *) msg->msg->data) + 2;
>             if (ofs > msg->msg->length)
>                 ofs = msg->msg->length;
-snap--------------------------------

regards
Stefan

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019