[Freeswitch-svn] [commit] r11334 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/nta

FreeSWITCH SVN mikej at freeswitch.org
Wed Jan 21 11:28:21 PST 2009


Author: mikej
Date: Wed Jan 21 13:28:20 2009
New Revision: 11334

Log:
mod_sofia: fix build error on gcc 4.3 (FSBUILD-105) 

Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/sl_utils_print.c

Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Wed Jan 21 13:28:20 2009
@@ -1 +1 @@
-Thur Dec 18 17:23:18 CST 2008
+Thur Jan 20 17:23:18 CST 2009

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/sl_utils_print.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/sl_utils_print.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/sl_utils_print.c	Wed Jan 21 13:28:20 2009
@@ -218,7 +218,8 @@
     crlf = strnspn(s + n, end - s - n, "\r\n");
     if (prefix)
       fputs(prefix, stream), total += strlen(prefix);
-    fwrite(s, 1, n + crlf, stream);
+	if (fwrite(s, 1, n + crlf, stream) < 0)
+		return -1;
     s += n + crlf;
     total += n + crlf;
   }



More information about the Freeswitch-svn mailing list