clearing tmp buffer before use
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 20 Aug 2006 16:03:17 +0000 (16:03 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 20 Aug 2006 16:03:17 +0000 (16:03 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5612 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/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] = '.';