aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dtd_preparse.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/dtd_preparse.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/dtd_preparse.l')
-rw-r--r--epan/dtd_preparse.l10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dtd_preparse.l b/epan/dtd_preparse.l
index 7a8fa5e8d0..9325718389 100644
--- a/epan/dtd_preparse.l
+++ b/epan/dtd_preparse.l
@@ -122,7 +122,7 @@ newline \n
%%
-{entity} if (current) g_string_sprintfa(current,"%s\n%s\n",replace_entity(yytext),location());
+{entity} if (current) g_string_append_printf(current,"%s\n%s\n",replace_entity(yytext),location());
{whitespace} if (current) g_string_append(current," ");
@@ -138,7 +138,7 @@ newline \n
{newline} {
linenum++;
- if (current) g_string_sprintfa(current,"%s\n",location());
+ if (current) g_string_append_printf(current,"%s\n",location());
}
@@ -150,7 +150,7 @@ newline \n
<IN_QUOTE>{non_quote} |
<IN_QUOTE>{escaped_quote} g_string_append(current,yytext);
<NAMED_ENTITY>{system} {
- g_string_sprintfa(error,"at %s:%u: file inclusion is not supported!", filename, linenum);
+ g_string_append_printf(error,"at %s:%u: file inclusion is not supported!", filename, linenum);
yyterminate();
}
<ENTITY_DONE>{special_stop} { current = output; g_string_append(current,"\n"); BEGIN OUTSIDE; }
@@ -167,7 +167,7 @@ static gchar* replace_entity(gchar* entity) {
if (replacement) {
return replacement->str;
} else {
- g_string_sprintfa(error,"dtd_preparse: in file '%s': entity %s does not exists\n", filename, entity);
+ g_string_append_printf(error,"dtd_preparse: in file '%s': entity %s does not exists\n", filename, entity);
return "";
}
@@ -200,7 +200,7 @@ extern GString* dtd_preparse(const gchar* dname,const gchar* fname, GString* er
if (!yyin) {
if (err)
- g_string_sprintfa(err, "Could not open file: '%s', error: %s",fullname,strerror(errno));
+ g_string_append_printf(err, "Could not open file: '%s', error: %s",fullname,strerror(errno));
return NULL;
}