Patch from Scott McKellar which removes harmful use of osrf_clearbuf()
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 12 Mar 2008 01:09:03 +0000 (01:09 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 12 Mar 2008 01:09:03 +0000 (01:09 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1283 9efc2488-bf62-4759-914b-345cdb29e865

src/libopensrf/log.c

index 8fb5094..01e60e0 100644 (file)
@@ -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];  
 
    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] = '.';
                /* give syslog some breathing room, and be cute about it */
                strncat(buf, msg, 1535);
                buf[1532] = '.';