aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libgfortran/m4/eoshift1.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/libgfortran/m4/eoshift1.m4')
-rw-r--r--gcc-4.9/libgfortran/m4/eoshift1.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc-4.9/libgfortran/m4/eoshift1.m4 b/gcc-4.9/libgfortran/m4/eoshift1.m4
index c373afe4b..df785ecdc 100644
--- a/gcc-4.9/libgfortran/m4/eoshift1.m4
+++ b/gcc-4.9/libgfortran/m4/eoshift1.m4
@@ -106,8 +106,8 @@ eoshift1 (gfc_array_char * const restrict ret,
GFC_DIMENSION_SET(ret->dim[i], 0, ub, str);
}
- /* xmalloc allocates a single byte for zero size. */
- ret->base_addr = xmalloc (size * arraysize);
+ /* xmallocarray allocates a single byte for zero size. */
+ ret->base_addr = xmallocarray (arraysize, size);
}
else if (unlikely (compile_options.bounds_check))