Do the full string in get_{compiled,runtime}_version_info().
[metze/wireshark/wip.git] / tshark.c
index c928ec0ef36524522d7c75e1f3b764a96e477255..934c731dfe0983a4d44c1b1e3017dd1db3f4675b 100644 (file)
--- a/tshark.c
+++ b/tshark.c
@@ -1055,14 +1055,12 @@ main(int argc, char *argv[])
   }
 #endif
 
-  /* Assemble the compile-time version information string */
-  comp_info_str = g_string_new("Compiled ");
-  get_compiled_version_info(comp_info_str, get_tshark_compiled_version_info,
-                            epan_get_compiled_version_info);
-
-  /* Assemble the run-time version information string */
-  runtime_info_str = g_string_new("Running ");
-  get_runtime_version_info(runtime_info_str, get_tshark_runtime_version_info);
+  /* Get the compile-time version information string */
+  comp_info_str = get_compiled_version_info(get_tshark_compiled_version_info,
+                                            epan_get_compiled_version_info);
+
+  /* Get the run-time version information string */
+  runtime_info_str = get_runtime_version_info(get_tshark_runtime_version_info);
 
   /* Add it to the information to be reported on a crash. */
   ws_add_crash_info("TShark (Wireshark) %s\n"