X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libiberty%2Fspaces.c;h=d97390b2ddce15721479afaaaae00ba062d9e101;hb=809a0c354b97bbbcacbd99808f0e328b39614a8f;hp=8666abe2026fd79e7439f286f3ee39a3631dedd0;hpb=fa99459db0a91f66893afca6d3f55174c633cf2b;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/spaces.c b/libiberty/spaces.c index 8666abe202..d97390b2dd 100644 --- a/libiberty/spaces.c +++ b/libiberty/spaces.c @@ -1,5 +1,5 @@ /* Allocate memory region filled with spaces. - Copyright (C) 1991 Free Software Foundation, Inc. + Copyright (C) 1991-2020 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or @@ -14,8 +14,8 @@ Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with libiberty; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ +not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +Boston, MA 02110-1301, USA. */ /* @@ -53,11 +53,8 @@ spaces (int count) if (count > maxsize) { - if (buf) - { - free (buf); - } - buf = malloc (count + 1); + free (buf); + buf = (char *) malloc (count + 1); if (buf == (char *) 0) return 0; for (t = buf + count ; t != buf ; )