summaryrefslogtreecommitdiffstats
path: root/gcc/fortran/gfortranspec.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/gfortranspec.c')
-rw-r--r--gcc/fortran/gfortranspec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/gfortranspec.c b/gcc/fortran/gfortranspec.c
index 54be2940e57..4a37164fe9a 100644
--- a/gcc/fortran/gfortranspec.c
+++ b/gcc/fortran/gfortranspec.c
@@ -397,7 +397,7 @@ For more information about these matters, see the file named COPYING\n\n"));
if (argv[i][2] == '\0')
{
- p = xmalloc (strlen (argv[i + 1]) + 2);
+ p = XNEWVEC (char, strlen (argv[i + 1]) + 2);
p[0] = '-';
p[1] = 'J';
strcpy (&p[2], argv[i + 1]);
@@ -405,7 +405,7 @@ For more information about these matters, see the file named COPYING\n\n"));
}
else
{
- p = xmalloc (strlen (argv[i]) + 1);
+ p = XNEWVEC (char, strlen (argv[i]) + 1);
strcpy (p, argv[i]);
}
append_arg (p);
OpenPOWER on IntegriCloud