From 8fd6cbe9171c988ae7665e5fd3aa3747f8f16c12 Mon Sep 17 00:00:00 2001 From: miker Date: Wed, 12 Mar 2008 01:09:03 +0000 Subject: [PATCH] Patch from Scott McKellar which removes harmful use of osrf_clearbuf() git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1283 9efc2488-bf62-4759-914b-345cdb29e865 --- src/libopensrf/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libopensrf/log.c b/src/libopensrf/log.c index 8fb5094..01e60e0 100644 --- a/src/libopensrf/log.c +++ b/src/libopensrf/log.c @@ -221,7 +221,7 @@ static void _osrfLogDetail( int level, const char* filename, int line, char* msg if( logtype == OSRF_LOG_TYPE_SYSLOG ) { char buf[1536]; - osrf_clearbuf(buf, sizeof(buf)); + buf[0] = '\0'; /* give syslog some breathing room, and be cute about it */ strncat(buf, msg, 1535); buf[1532] = '.'; -- 2.43.2