Do the full string in get_{compiled,runtime}_version_info().
[metze/wireshark/wip.git] / ui / gtk / main.c
index 1a3632adde6dd597a16cfe291b0cf9f13638d96a..930c8d668df732031de3d7bb6186df852c8230e8 100644 (file)
@@ -2257,15 +2257,12 @@ main(int argc, char *argv[])
 #endif /* HAVE_AIRPCAP */
 #endif  /* _WIN32 */
 
-    /* Assemble the compile-time version information string */
-    comp_info_str = g_string_new("Compiled ");
+    /* Get the compile-time version information string */
+    comp_info_str = get_compiled_version_info(get_wireshark_gtk_compiled_info,
+                                              get_gui_compiled_info);
 
-    get_compiled_version_info(comp_info_str, get_wireshark_gtk_compiled_info,
-                              get_gui_compiled_info);
-
-    /* Assemble the run-time version information string */
-    runtime_info_str = g_string_new("Running ");
-    get_runtime_version_info(runtime_info_str, get_wireshark_runtime_info);
+    /* Get the run-time version information string */
+    runtime_info_str = get_runtime_version_info(get_wireshark_runtime_info);
 
     /* Add it to the information to be reported on a crash. */
     ws_add_crash_info("Wireshark %s\n"