summaryrefslogtreecommitdiff
path: root/libgfortran/m4/eoshift1.m4
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/m4/eoshift1.m4')
-rw-r--r--libgfortran/m4/eoshift1.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/m4/eoshift1.m4 b/libgfortran/m4/eoshift1.m4
index c373afe4b6b..df785ecdc20 100644
--- a/libgfortran/m4/eoshift1.m4
+++ b/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))