From: Chris Rienzo Date: Mon, 30 Jun 2014 21:30:59 +0000 (-0400) Subject: fs_cli: fix compiler error on CentOS 6 caused by recent short uuid logging change X-Git-Tag: v1.5.13~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b14633cf3e7c62bba7bbbcd395bfdab1e04e5de;p=thirdparty%2Ffreeswitch.git fs_cli: fix compiler error on CentOS 6 caused by recent short uuid logging change --- diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index 311c6f5993..ed59792771 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -748,7 +748,9 @@ static void *msg_thread_run(esl_thread_t *me, void *obj) if (global_profile->log_uuid_length) { int len = strlen(userdata); 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(" "); } else { printf("%s ", userdata);