diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2016-12-07 19:02:06 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-12-07 19:46:49 +0000 |
commit | fa47c368c6ea29c71e7a0d80aa42f8632f335fb8 (patch) | |
tree | d9fdb9ac7a0a864cc23f5e09dc94de2b212d7b37 | |
parent | cd4540b260040f08a5e814fab4c60e001501f8cb (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.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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; |