aboutsummaryrefslogtreecommitdiffstats
path: root/extcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'extcap.c')
-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;