diff options
Diffstat (limited to 'gcc-4.9/libgfortran/m4/unpack.m4')
-rw-r--r-- | gcc-4.9/libgfortran/m4/unpack.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc-4.9/libgfortran/m4/unpack.m4 b/gcc-4.9/libgfortran/m4/unpack.m4 index 4382ac425..e945446d8 100644 --- a/gcc-4.9/libgfortran/m4/unpack.m4 +++ b/gcc-4.9/libgfortran/m4/unpack.m4 @@ -100,7 +100,7 @@ unpack0_'rtype_code` ('rtype` *ret, const 'rtype` *vector, rs *= extent[n]; } ret->offset = 0; - ret->base_addr = xmalloc (rs * sizeof ('rtype_name`)); + ret->base_addr = xmallocarray (rs, sizeof ('rtype_name`)); } else { @@ -245,7 +245,7 @@ unpack1_'rtype_code` ('rtype` *ret, const 'rtype` *vector, rs *= extent[n]; } ret->offset = 0; - ret->base_addr = xmalloc (rs * sizeof ('rtype_name`)); + ret->base_addr = xmallocarray (rs, sizeof ('rtype_name`)); } else { |