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

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11334 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-01-21 19:28:20 +00:00
parent c67c96914b
commit d88a0fbefc
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
Thur Dec 18 17:23:18 CST 2008
Thur Jan 20 17:23:18 CST 2009

View File

@ -218,7 +218,8 @@ issize_t sl_payload_print(FILE *stream, char const *prefix, sip_payload_t const
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;
}