commit | e6375bc8ebbbc177c79f08e9616eb0b131229f65 | [log] [tgz] |
---|---|---|
author | Tom Tromey <tom@tromey.com> | Wed Apr 17 16:17:33 2024 -0600 |
committer | Tom Tromey <tom@tromey.com> | Sun Apr 21 12:12:43 2024 -0600 |
tree | fca4ad6a0389268a24e79e5b007b65528cda648d | |
parent | 7e9ef24e4a72d8d174932c7dd6be44226328ab88 [diff] |
Remove some alloca uses A few spots (mostly in the parsers) use alloca to ensure that a string is terminated before passing it to a printf-like function (mostly 'error'). However, this isn't needed as the "%.*s" format can be used instead. This patch makes this change. In one spot the alloca is dead code and is simply removed. Regression tested on x86-64 Fedora 38. Approved-By: John Baldwin <jhb@FreeBSD.org>