mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-10 01:40:26 +00:00
fs_cli: fix compiler error on CentOS 6 caused by recent short uuid logging change
This commit is contained in:
parent
024162cfc9
commit
9b14633cf3
@ -748,7 +748,9 @@ static void *msg_thread_run(esl_thread_t *me, void *obj)
|
|||||||
if (global_profile->log_uuid_length) {
|
if (global_profile->log_uuid_length) {
|
||||||
int len = strlen(userdata);
|
int len = strlen(userdata);
|
||||||
int i = (global_profile->log_uuid_length < len) ? global_profile->log_uuid_length : len;
|
int i = (global_profile->log_uuid_length < len) ? global_profile->log_uuid_length : len;
|
||||||
fwrite(userdata, sizeof(char), i, stdout);
|
if (fwrite(userdata, sizeof(char), i, stdout) < i) {
|
||||||
|
// don't care
|
||||||
|
}
|
||||||
printf(" ");
|
printf(" ");
|
||||||
} else {
|
} else {
|
||||||
printf("%s ", userdata);
|
printf("%s ", userdata);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user