resrc: sprintf sanitizer null destination pointer
authorAlan Modra <amodra@gmail.com>
Wed, 2 Aug 2023 22:48:13 +0000 (08:18 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 3 Aug 2023 11:49:54 +0000 (21:19 +0930)
commit137f6bc0dabe209c1617fb396eb590e7b7ee8faa
tree2d6344704ee9abd7b006c51ca9bea6ecfc3bb12b
parente2e7c5261311fd7d557769a73e1fbc496cd56d23
resrc: sprintf sanitizer null destination pointer

* resrc.c (read_rc_file): Use stpcpy rather than sprintf
followed by strlen.  Tidy.
binutils/resrc.c