]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fs_cli: fix compiler error on CentOS 6 caused by recent short uuid logging change
authorChris Rienzo <chris.rienzo@grasshopper.com>
Mon, 30 Jun 2014 21:30:59 +0000 (17:30 -0400)
committerChris Rienzo <chris.rienzo@grasshopper.com>
Mon, 30 Jun 2014 21:31:13 +0000 (17:31 -0400)
libs/esl/fs_cli.c

index f72e570c7d9434356b5f76a33327f09337f7bc0d..1838f647ad669e64f70f69a0788440eaca68db73 100644 (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);