aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2016-12-07 19:02:06 +0100
committerMichael Mann <mmann78@netscape.net>2016-12-07 19:46:49 +0000
commitfa47c368c6ea29c71e7a0d80aa42f8632f335fb8 (patch)
treed9fdb9ac7a0a864cc23f5e09dc94de2b212d7b37
parentcd4540b260040f08a5e814fab4c60e001501f8cb (diff)
extcap: Separate dirname and file with G_DIR_SEPARATOR_S.
Change-Id: I9e1e9b1a10a15ca95519392a7a19ba77f460141e Reviewed-on: https://code.wireshark.org/review/19131 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--extcap.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/extcap.c b/extcap.c
index b900d084f5..b56dd3a064 100644
--- a/extcap.c
+++ b/extcap.c
@@ -179,11 +179,7 @@ static void extcap_foreach(gint argc, gchar **args, extcap_cb_t cb,
gchar *command_output = NULL;
/* full path to extcap binary */
-#ifdef _WIN32
- g_string_printf(extcap_path, "%s\\%s", dirname, file);
-#else
- g_string_printf(extcap_path, "%s/%s", dirname, file);
-#endif
+ g_string_printf(extcap_path, "%s" G_DIR_SEPARATOR_S "%s", dirname, file);
if ( extcap_if_exists(ifname) && !extcap_if_exists_for_extcap(ifname, extcap_path->str ) )
continue;