From b0ff46ee380e98730bbccc01642a4866b67f432f Mon Sep 17 00:00:00 2001 From: erickson Date: Sun, 20 Aug 2006 16:03:17 +0000 Subject: [PATCH] clearing tmp buffer before use git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@763 9efc2488-bf62-4759-914b-345cdb29e865 --- src/utils/log.c | 1 + 1 file changed, 1 insertion(+) 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] = '.'; -- 2.43.2