clearing tmp buffer before use
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Sun, 20 Aug 2006 16:03:17 +0000 (16:03 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Sun, 20 Aug 2006 16:03:17 +0000 (16:03 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@763 9efc2488-bf62-4759-914b-345cdb29e865

src/utils/log.c

index 7e2959f..92791c2 100644 (file)
@@ -126,6 +126,7 @@ void _osrfLogDetail( int level, const char* filename, int line, char* msg ) {
 
        if(__osrfLogType == OSRF_LOG_TYPE_SYSLOG ) {
                char buf[1536];  
+               memset(buf, 0x0, 1536);
                /* give syslog some breathing room, and be cute about it */
                strncat(buf, msg, 1535);
                buf[1532] = '.';