summaryrefslogtreecommitdiff
path: root/libgfortran/generated/eoshift1_16.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/eoshift1_16.c')
-rw-r--r--libgfortran/generated/eoshift1_16.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/generated/eoshift1_16.c b/libgfortran/generated/eoshift1_16.c
index 8b098fb0629..06a3682035c 100644
--- a/libgfortran/generated/eoshift1_16.c
+++ b/libgfortran/generated/eoshift1_16.c
@@ -106,8 +106,8 @@ eoshift1 (gfc_array_char * const restrict ret,
GFC_DIMENSION_SET (ret->dim[i], 0, ext, sm);
}
- /* 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))