* intrinsics/execute_command_line.c (set_cmdstat): Use "%s", msg
instead of msg to avoid -Wformat-security warning.
From-SVN: r232449
+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>
Update copyright years.
/* Implementation of the EXECUTE_COMMAND_LINE intrinsic.
Copyright (C) 2009-2016 Free Software Foundation, Inc.
- Contributed by FranÃ\83§ois-Xavier Coudert.
+ Contributed by François-Xavier Coudert.
This file is part of the GNU Fortran runtime library (libgfortran).
#define MSGLEN 200
char msg[MSGLEN] = "EXECUTE_COMMAND_LINE: ";
strncat (msg, cmdmsg_values[value], MSGLEN - strlen(msg) - 1);
- runtime_error (msg);
+ runtime_error ("%s", msg);
}
}