From: miker Date: Wed, 12 Mar 2008 01:09:03 +0000 (+0000) Subject: Patch from Scott McKellar which removes harmful use of osrf_clearbuf() X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8fd6cbe9171c988ae7665e5fd3aa3747f8f16c12;p=working%2FOpenSRF.git 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 --- 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] = '.';