aboutsummaryrefslogtreecommitdiffstats
path: root/epan/radius_dict.l
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2008-05-11 18:33:49 +0000
committerBill Meier <wmeier@newsguy.com>2008-05-11 18:33:49 +0000
commitfe5c2d98205e726a049ae1c5f2ac5013c6bda60b (patch)
tree2c5118a7646e1fa773f2a668ffa4cae5cedb3c5d /epan/radius_dict.l
parent319f71c537bf55a7cdfe0ea51d1909ad24c6491b (diff)
g_string_sprintf --> g_string_printf and g_string_sprintfa --> g_string_append_printf
svn path=/trunk/; revision=25276
Diffstat (limited to 'epan/radius_dict.l')
-rw-r--r--epan/radius_dict.l8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/radius_dict.l b/epan/radius_dict.l
index 5fc91d0700..6ae9623139 100644
--- a/epan/radius_dict.l
+++ b/epan/radius_dict.l
@@ -189,7 +189,7 @@
<INCLUDE>[^[:blank:]\n]+ {
if ( include_stack_ptr >= MAX_INCLUDE_DEPTH ) {
- g_string_sprintfa(error, "$INCLUDE files nested to deeply\n");
+ g_string_append_printf(error, "$INCLUDE files nested to deeply\n");
yyterminate();
}
@@ -202,7 +202,7 @@
if (!yyin) {
if (errno) {
- g_string_sprintfa(error, "Could not open file: '%s', error: %s\n", fullpaths[include_stack_ptr], strerror(errno) );
+ g_string_append_printf(error, "Could not open file: '%s', error: %s\n", fullpaths[include_stack_ptr], strerror(errno) );
yyterminate();
}
} else {
@@ -258,7 +258,7 @@ void add_attribute(const gchar* name, const gchar* code, radius_attr_dissector_
v = g_hash_table_lookup(dict->vendors_by_name,vendor_name);
if (! v) {
- g_string_sprintfa(error, "Vendor: '%s', does not exist in %s:%i \n", vendor_name, fullpaths[include_stack_ptr], linenums[include_stack_ptr] );
+ g_string_append_printf(error, "Vendor: '%s', does not exist in %s:%i \n", vendor_name, fullpaths[include_stack_ptr], linenums[include_stack_ptr] );
BEGIN JUNK;
return;
} else {
@@ -385,7 +385,7 @@ gboolean radius_load_dictionary (radius_dictionary_t* d, gchar* dir, const gchar
yyin = eth_fopen(fullpaths[include_stack_ptr],"r");
if (!yyin) {
- g_string_sprintfa(error, "Could not open file: '%s', error: %s\n", fullpaths[include_stack_ptr], strerror(errno) );
+ g_string_append_printf(error, "Could not open file: '%s', error: %s\n", fullpaths[include_stack_ptr], strerror(errno) );
g_free(fullpaths[include_stack_ptr]);
*err_str = error->str;
g_string_free(error,FALSE);