Fix microcode's `--version' output.
authorTaylor R Campbell <campbell@mumble.net>
Tue, 27 Jul 2010 01:56:36 +0000 (01:56 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Tue, 27 Jul 2010 01:56:36 +0000 (01:56 +0000)
Write a newline, and force console output.

src/microcode/option.c

index 5cc52a6146e68bc6de9fea2c343e9faaa33d9ce0..ad9045fc2fd47f53925ec2bb6209fa0beb27326b 100644 (file)
@@ -988,7 +988,10 @@ read_command_line_options (int argc, const char ** argv)
                                STACK_SIZE_VARIABLE,
                                DEFAULT_STACK_SIZE));
   if (option_show_version)
-    outf_console ("%s", PACKAGE_STRING);
+    {
+      outf_console ("%s\n", PACKAGE_STRING);
+      outf_flush_console ();
+    }
   if (option_show_help)
     print_help ();
   if (option_summary)