diff libinterp/corefcn/syscalls.cc @ 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 f881d3e271d2
children 00f796120a6d
line wrap: on
line diff
--- a/libinterp/corefcn/syscalls.cc	Thu Nov 29 12:54:15 2018 +0100
+++ b/libinterp/corefcn/syscalls.cc	Thu Nov 29 12:15:25 2018 -0800
@@ -290,7 +290,7 @@
   pid = octave::sys::popen2 (exec_file, arg_list, sync_mode, filedesc, msg);
 
   if (pid < 0)
-    error (msg.c_str ());
+    error ("%s", msg.c_str ());
 
   FILE *ifile = fdopen (filedesc[1], "r");
   FILE *ofile = fdopen (filedesc[0], "w");