/* Runtime conversion of strings from one character kind to another.
- Copyright 2008, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2008-2013 Free Software Foundation, Inc.
This file is part of the GNU Fortran runtime library (libgfortran).
gfc_charlen_type i, l;
l = len > 0 ? len : 0;
- *dst = get_mem ((l + 1) * sizeof (gfc_char4_t));
+ *dst = xmalloc ((l + 1) * sizeof (gfc_char4_t));
for (i = 0; i < l; i++)
(*dst)[i] = src[i];
gfc_charlen_type i, l;
l = len > 0 ? len : 0;
- *dst = get_mem ((l + 1) * sizeof (unsigned char));
+ *dst = xmalloc ((l + 1) * sizeof (unsigned char));
for (i = 0; i < l; i++)
(*dst)[i] = src[i];