diff options
-rw-r--r-- | src/translators/btparse/bibtex_ast.c | 2 | ||||
-rw-r--r-- | src/translators/btparse/error.c | 4 |
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; } |