Commit f4742991 by Jakub Jelinek Committed by Jakub Jelinek

execute_command_line.c (set_cmdstat): Use "%s", msg instead of msg to avoid…

execute_command_line.c (set_cmdstat): Use "%s", msg instead of msg to avoid -Wformat-security warning.

	* intrinsics/execute_command_line.c (set_cmdstat): Use "%s", msg
	instead of msg to avoid -Wformat-security warning.

From-SVN: r232449
parent 4c0f272c
2016-01-15 Jakub Jelinek <jakub@redhat.com>
* intrinsics/execute_command_line.c (set_cmdstat): Use "%s", msg
instead of msg to avoid -Wformat-security warning.
2016-01-04 Jakub Jelinek <jakub@redhat.com> 2016-01-04 Jakub Jelinek <jakub@redhat.com>
Update copyright years. Update copyright years.
......
/* Implementation of the EXECUTE_COMMAND_LINE intrinsic. /* Implementation of the EXECUTE_COMMAND_LINE intrinsic.
Copyright (C) 2009-2016 Free Software Foundation, Inc. Copyright (C) 2009-2016 Free Software Foundation, Inc.
Contributed by François-Xavier Coudert. Contributed by François-Xavier Coudert.
This file is part of the GNU Fortran runtime library (libgfortran). This file is part of the GNU Fortran runtime library (libgfortran).
...@@ -55,7 +55,7 @@ set_cmdstat (int *cmdstat, int value) ...@@ -55,7 +55,7 @@ set_cmdstat (int *cmdstat, int value)
#define MSGLEN 200 #define MSGLEN 200
char msg[MSGLEN] = "EXECUTE_COMMAND_LINE: "; char msg[MSGLEN] = "EXECUTE_COMMAND_LINE: ";
strncat (msg, cmdmsg_values[value], MSGLEN - strlen(msg) - 1); strncat (msg, cmdmsg_values[value], MSGLEN - strlen(msg) - 1);
runtime_error (msg); runtime_error ("%s", msg);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment