From: erickson Date: Sun, 20 Aug 2006 16:03:17 +0000 (+0000) Subject: clearing tmp buffer before use X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=21db207f530ea2bce19172f0e0136b8bdc46eda0;p=evergreen%2Fpines.git clearing tmp buffer before use git-svn-id: svn://svn.open-ils.org/ILS/trunk@5612 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/OpenSRF/src/utils/log.c b/OpenSRF/src/utils/log.c index 7e2959f9ba..92791c2940 100644 --- a/OpenSRF/src/utils/log.c +++ b/OpenSRF/src/utils/log.c @@ -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] = '.';