[Freeswitch-trunk] [commit] r12375 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/nta
FreeSWITCH SVN
mikej at freeswitch.org
Tue Mar 3 09:19:58 PST 2009
Author: mikej
Date: Tue Mar 3 11:19:58 2009
New Revision: 12375
Log:
Mon Mar 2 11:21:17 CST 2009 Pekka Pessi <first.last at nokia.com>
* sl_utils_print.c: propagate error from fwrite()
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 Tue Mar 3 11:19:58 2009
@@ -1 +1 @@
-Tue Mar 3 11:18:41 CST 2009
+Tue Mar 3 11:19:17 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 Tue Mar 3 11:19:58 2009
@@ -218,11 +218,18 @@
crlf = su_strnspn(s + n, end - s - n, "\r\n");
if (prefix)
fputs(prefix, stream), total += strlen(prefix);
+v v v v v v v
actual = fwrite(s, 1, n + crlf, stream) ;
if (actual == 0)
return -1;
s += actual;
total += actual;
+*************
+ if (fwrite(s, 1, n + crlf, stream) < n + crlf)
+ return (issize_t)-1;
+ s += n + crlf;
+ total += n + crlf;
+^ ^ ^ ^ ^ ^ ^
}
if (crlf == 0)
fputs("\n", stream), total++;
More information about the Freeswitch-trunk
mailing list