forked from Mirrors/freeswitch
add bugfix portion of MDXMLINT-17
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6235 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
69f7a9a955
commit
c4cf0fd7dd
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user