From 8f53b0f4d5318e79eff23d9b96517cb8400d9c53 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 21 May 2008 16:53:57 +0200 Subject: bugfix: imklog went into an endless loop if a PRI value was inside a kernel log message This is an unusual case under Linux, and a frequent one under BSD --- plugins/imklog/imklog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/imklog') diff --git a/plugins/imklog/imklog.c b/plugins/imklog/imklog.c index c6fb1592..331805b3 100644 --- a/plugins/imklog/imklog.c +++ b/plugins/imklog/imklog.c @@ -132,7 +132,7 @@ parsePRI(uchar **ppSz, int *piPri) ++pSz; i = 0; while(isdigit(*pSz)) { - i = i * 10 + *pSz - '0'; + i = i * 10 + *pSz++ - '0'; } if(*pSz != '>') -- cgit