Fix 'format not a string literal' error

Thanks to Francois Andriot
pull/1/head
Slávek Banko 13 years ago
parent 57607a1553
commit 592d3b6311

@ -57,7 +57,7 @@ static void dump (AST *root, int depth)
void dump_ast (char *msg, AST *root) void dump_ast (char *msg, AST *root)
{ {
if (msg != NULL) if (msg != NULL)
printf (msg); printf ("%s", msg);
dump (root, 0); dump (root, 0);
printf ("\n"); printf ("\n");
} }

@ -88,7 +88,7 @@ void print_error (bt_error *err)
if (err->filename) if (err->filename)
{ {
fprintf (stderr, err->filename); fprintf (stderr, "%s", err->filename);
something_printed = TRUE; something_printed = TRUE;
} }
if (err->line > 0) /* going to print a line number? */ if (err->line > 0) /* going to print a line number? */
@ -111,7 +111,7 @@ void print_error (bt_error *err)
{ {
if (something_printed) if (something_printed)
fprintf (stderr, ", "); fprintf (stderr, ", ");
fprintf (stderr, name); fprintf (stderr, "%s", name);
something_printed = TRUE; something_printed = TRUE;
} }

Loading…
Cancel
Save