fix 467: when using -k command line option, convert interface name display string...
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 21 Sep 2005 20:33:12 +0000 (20:33 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 21 Sep 2005 20:33:12 +0000 (20:33 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15943 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/main.c

index ba64af607d3a7257eb6bbc90f23fe8278ff286bc..b92926f01b3b46ae2b0e0e5a0c3ee09f2c287e4a 100644 (file)
@@ -2279,7 +2279,7 @@ main(int argc, char *argv[])
       /* No - is a default specified in the preferences file? */
       if (prefs->capture_device != NULL) {
           /* Yes - use it. */
-          capture_opts->iface = g_strdup(prefs->capture_device);
+          capture_opts->iface = g_strdup(get_if_name(prefs->capture_device));
       } else {
         /* No - pick the first one from the list of interfaces. */
         if_list = get_interface_list(&err, err_str);