[Freeswitch-svn] [commit] r2297 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Tue Aug 15 12:17:03 EDT 2006


Author: mikej
Date: Tue Aug 15 12:17:03 2006
New Revision: 2297

Modified:
   freeswitch/trunk/src/switch_event.c

Log:
make vsnprintf check work



Modified: freeswitch/trunk/src/switch_event.c
==============================================================================
--- freeswitch/trunk/src/switch_event.c	(original)
+++ freeswitch/trunk/src/switch_event.c	Tue Aug 15 12:17:03 2006
@@ -443,12 +443,12 @@
 	va_list ap;
 	if (fmt) {
 		va_start(ap, fmt);
-		vsnprintf(data, sizeof(data), fmt, ap);
+		ret = vsnprintf(data, sizeof(data), fmt, ap);
 		va_end(ap);
 	}
 
 	if (ret == -1) {
-		return SWITCH_STATUS_MEMERR;
+		return SWITCH_STATUS_GENERR;
 	} else {
 		event->body = DUP(data);
 		return SWITCH_STATUS_SUCCESS;



More information about the Freeswitch-svn mailing list