summaryrefslogtreecommitdiffstats
path: root/src/translators/btparse
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2012-11-01 04:26:16 +0100
committerSlávek Banko <[email protected]>2012-11-01 04:26:16 +0100
commit592d3b63117f0346e24aed875cc78d06af2b3631 (patch)
treead8658ff31c1584b6d6f093ad13e73a1b2c3c372 /src/translators/btparse
parent57607a1553912bc5bd2b6086945ca8eda9bb9038 (diff)
downloadtellico-592d3b63117f0346e24aed875cc78d06af2b3631.tar.gz
tellico-592d3b63117f0346e24aed875cc78d06af2b3631.zip
Fix 'format not a string literal' error
Thanks to Francois Andriot
Diffstat (limited to 'src/translators/btparse')
-rw-r--r--src/translators/btparse/bibtex_ast.c2
-rw-r--r--src/translators/btparse/error.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/translators/btparse/bibtex_ast.c b/src/translators/btparse/bibtex_ast.c
index 354cefb..341c3d0 100644
--- a/src/translators/btparse/bibtex_ast.c
+++ b/src/translators/btparse/bibtex_ast.c
@@ -57,7 +57,7 @@ static void dump (AST *root, int depth)
void dump_ast (char *msg, AST *root)
{
if (msg != NULL)
- printf (msg);
+ printf ("%s", msg);
dump (root, 0);
printf ("\n");
}
diff --git a/src/translators/btparse/error.c b/src/translators/btparse/error.c
index 26f2fb2..8c7f445 100644
--- a/src/translators/btparse/error.c
+++ b/src/translators/btparse/error.c
@@ -88,7 +88,7 @@ void print_error (bt_error *err)
if (err->filename)
{
- fprintf (stderr, err->filename);
+ fprintf (stderr, "%s", err->filename);
something_printed = TRUE;
}
if (err->line > 0) /* going to print a line number? */
@@ -111,7 +111,7 @@ void print_error (bt_error *err)
{
if (something_printed)
fprintf (stderr, ", ");
- fprintf (stderr, name);
+ fprintf (stderr, "%s", name);
something_printed = TRUE;
}