fs_cli: fix compiler error on CentOS 6 caused by recent short uuid logging change

This commit is contained in:
Chris Rienzo 2014-06-30 17:30:59 -04:00
parent 1139d47533
commit 2b62885f21

View File

@ -759,7 +759,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);