+/*
+ * Allow the last of the report string to be gathered before we terminate.
+ */
+ while (report_gathering)
+ {
+ int c;
+ c = get_char();
+ if (!iscntrl (c))
+ {
+ int rep_len = strlen (report_buffer);
+ report_buffer[rep_len] = c;
+ report_buffer[rep_len + 1] = '\0';
+ }
+ else
+ {
+ report_gathering = 0;
+ fprintf (report_fp, "chat: %s\n", report_buffer);
+ }
+ }