diff options
Diffstat (limited to 'libgfortran/generated/pack_i16.c')
-rw-r--r-- | libgfortran/generated/pack_i16.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/generated/pack_i16.c b/libgfortran/generated/pack_i16.c index da1faefd450..01d32ad0fad 100644 --- a/libgfortran/generated/pack_i16.c +++ b/libgfortran/generated/pack_i16.c @@ -167,8 +167,8 @@ pack_i16 (gfc_array_i16 *ret, const gfc_array_i16 *array, ret->offset = 0; - /* xmalloc allocates a single byte for zero size. */ - ret->base_addr = xmalloc (sizeof (GFC_INTEGER_16) * total); + /* xmallocarray allocates a single byte for zero size. */ + ret->base_addr = xmallocarray (total, sizeof (GFC_INTEGER_16)); if (total == 0) return; |