Mercurial > octave
diff libinterp/parse-tree/oct-parse.yy @ 26149:242aa7b2c783
Silence unnecessary warnings about security-format (bug #55046).
* Table.cc, sub2ind.cc, syscalls.cc, symbfact.cc, ov-java.cc, oct-parse.yy,
pt-eval.cc: Supply a format string of "%s" when calling error() or warning()
and a single string to print.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 29 Nov 2018 12:15:25 -0800 |
parents | 1dd0e16b82e3 |
children | 0249ba4c9589 00f796120a6d |
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.yy Thu Nov 29 12:54:15 2018 +0100 +++ b/libinterp/parse-tree/oct-parse.yy Thu Nov 29 12:15:25 2018 -0800 @@ -5685,7 +5685,7 @@ // Print error message again, which was lost because of the stderr buffer // Note: this keeps error_state and last_error_stack intact message_with_id ("error", last_error_id ().c_str (), - last_error_message ().c_str ()); + "%s", last_error_message ().c_str ()); } static void