From Jose Pedro Oliveira shb_os value: get_os_version_info() instead of get_runtime_v...
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 21 Feb 2012 05:52:50 +0000 (05:52 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 21 Feb 2012 05:52:50 +0000 (05:52 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41095 f5534014-38df-0310-8fa8-9805f1628bb7

dumpcap.c

index fbe3777..6d2bcd3 100644 (file)
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -3008,22 +3008,22 @@ do_file_switch_or_stop(capture_options *capture_opts,
             global_ld.bytes_written = 0;
             if (capture_opts->use_pcapng) {
                 char appname[100];
-                GString             *runtime_info_str;
+                GString             *os_info_str;
 
-                runtime_info_str = g_string_new("");
-                get_runtime_version_info(runtime_info_str, NULL);
+                os_info_str = g_string_new("");
+                get_os_version_info(os_info_str);
 
                 g_snprintf(appname, sizeof(appname), "Dumpcap " VERSION "%s", wireshark_svnversion);
                 successful = libpcap_write_session_header_block(global_ld.pdh, 
                                 NULL,                        /* Comment */
                                 NULL,                        /* HW */
-                                runtime_info_str->str,       /* OS */
+                                os_info_str->str,            /* OS */
                                 appname,
                                                                -1,                          /* section_length */
                                 &(global_ld.bytes_written), 
                                 &global_ld.err);
 
-                g_string_free(runtime_info_str, TRUE);
+                g_string_free(os_info_str, TRUE);
 
                 for (i = 0; successful && (i < capture_opts->ifaces->len); i++) {
                     interface_opts = g_array_index(capture_opts->ifaces, interface_options, i);