X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Fwrstabs.c;h=1b8c311021bb8ac58ec93a0fa4a90d84452f29cb;hb=9108bc33b1ca0b2e930c0cce5b1a0394e33e86be;hp=0ca861ce8d84b4b9dbdc0d9a1c11c72bbf673b90;hpb=8b6efd89a4135971b748c958a852d093b3d79d3d;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/wrstabs.c b/binutils/wrstabs.c index 0ca861ce8d..1b8c311021 100644 --- a/binutils/wrstabs.c +++ b/binutils/wrstabs.c @@ -1,6 +1,5 @@ /* wrstabs.c -- Output stabs debugging information - Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, - 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 1996-2018 Free Software Foundation, Inc. Written by Ian Lance Taylor . This file is part of GNU Binutils. @@ -1312,9 +1311,7 @@ stab_start_struct_type (void *p, const char *tag, unsigned int id, struct stab_write_handle *info = (struct stab_write_handle *) p; long tindex; bfd_boolean definition; - char *buf; - - buf = (char *) xmalloc (40); + char buf[40]; if (id == 0) {