aboutsummaryrefslogtreecommitdiffstats
path: root/epan/radius_dict.l
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-01-02 06:39:22 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-01-02 06:39:22 +0000
commitfca08caaa0440b97c8a17474c491379f4b05dfa8 (patch)
tree4c9a33fbcc555a430887100c4a7b7d8148528746 /epan/radius_dict.l
parent9db56cc7a54f56feca2aa7607b41a7a4ef15df7a (diff)
Use G_DIR_SEPARATOR_S as the path separator.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20260 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/radius_dict.l')
-rw-r--r--epan/radius_dict.l7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/radius_dict.l b/epan/radius_dict.l
index ff2bfee3ed..e2fc99c0f6 100644
--- a/epan/radius_dict.l
+++ b/epan/radius_dict.l
@@ -45,7 +45,6 @@
#include <errno.h>
#include <epan/packet.h>
#include <epan/dissectors/packet-radius.h>
-#define DIR_SEPARATOR '/'
#define ECHO
#define MAX_INCLUDE_DEPTH 10
@@ -174,7 +173,8 @@
include_stack[include_stack_ptr++] = YY_CURRENT_BUFFER;
- fullpaths[include_stack_ptr] = g_strdup_printf("%s%c%s",directory,DIR_SEPARATOR,yytext);
+ fullpaths[include_stack_ptr] = g_strdup_printf("%s" G_DIR_SEPARATOR_S "%s",
+ directory,yytext);
yyin = fopen( fullpaths[include_stack_ptr], "r" );
@@ -354,7 +354,8 @@ radius_dictionary_t* radius_load_dictionary (gchar* dir, const gchar* filename,
directory = dir;
- fullpaths[include_stack_ptr] = g_strdup_printf("%s%c%s",directory,DIR_SEPARATOR,filename);
+ fullpaths[include_stack_ptr] = g_strdup_printf("%s" G_DIR_SEPARATOR_S "%s",
+ directory,filename);
error = g_string_new("");