[Opensrf-commits] r1283 - trunk/src/libopensrf

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Mar 11 21:42:19 EDT 2008


Author: miker
Date: 2008-03-11 21:09:03 -0400 (Tue, 11 Mar 2008)
New Revision: 1283

Modified:
   trunk/src/libopensrf/log.c
Log:
Patch from Scott McKellar which removes harmful use of osrf_clearbuf()

Modified: trunk/src/libopensrf/log.c
===================================================================
--- trunk/src/libopensrf/log.c	2008-03-11 22:03:28 UTC (rev 1282)
+++ trunk/src/libopensrf/log.c	2008-03-12 01:09:03 UTC (rev 1283)
@@ -221,7 +221,7 @@
 
    if( logtype == OSRF_LOG_TYPE_SYSLOG ) {
 		char buf[1536];  
-		osrf_clearbuf(buf, sizeof(buf));
+		buf[0] = '\0';
 		/* give syslog some breathing room, and be cute about it */
 		strncat(buf, msg, 1535);
 		buf[1532] = '.';



More information about the opensrf-commits mailing list