提交 d88a0fbe authored 作者: Michael Jerris's avatar Michael Jerris

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
上级 c67c9691
Thur Dec 18 17:23:18 CST 2008
Thur Jan 20 17:23:18 CST 2009
......@@ -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;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论