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

add bugfix portion of MDXMLINT-17

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6235 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 69f7a9a9
......@@ -58,7 +58,10 @@ static size_t file_callback(void *ptr, size_t size, size_t nmemb, void *data)
struct config_data *config_data = data;
int x;
x = write(config_data->fd, ptr, realsize);
return realsize;
if ( x != (int)realsize) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Short write! %d out of %d\n", x, realsize);
}
return x;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论