]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use std::string in coff-pe-read.c
authorTom Tromey <tromey@adacore.com>
Tue, 19 Apr 2022 13:33:09 +0000 (07:33 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 22 Apr 2022 12:57:07 +0000 (06:57 -0600)
commit0f34437ba0f5acab1fcb05630d88057402abbfeb
treead31b8a122e9f3c9017bf27f8b588c6b493d8e7d
parentfa265c9bef46fc2211f8dccbc9d9b432778087be
Use std::string in coff-pe-read.c

coff-pe-read.c uses xsnprintf and alloca, but using std::string is
better, and just as easy.  In general I think alloca is something to
be avoided, and unbounded uses especially so.
gdb/coff-pe-read.c