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=b0ff46ee380e98730bbccc01642a4866b67f432f;p=opensrf%2Fbjwebb.git clearing tmp buffer before use git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@763 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/utils/log.c b/src/utils/log.c index 7e2959f..92791c2 100644 --- a/src/utils/log.c +++ b/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] = '.';