aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-i386.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2024-06-21 08:32:53 +0200
committerJan Beulich <jbeulich@suse.com>2024-06-21 08:32:53 +0200
commit4ad2348edbf43a3d1a694fd5375680cb55e6b1c1 (patch)
treef8bff11714d4543371e83faa7092ebd1a11e15c7 /gas/config/tc-i386.c
parentda16a23481b3b89a61b7c6d04a661f9327c9fd26 (diff)
downloadbinutils-4ad2348edbf43a3d1a694fd5375680cb55e6b1c1.zip
binutils-4ad2348edbf43a3d1a694fd5375680cb55e6b1c1.tar.gz
binutils-4ad2348edbf43a3d1a694fd5375680cb55e6b1c1.tar.bz2
gas: terminate buffer SB in do_repeat()
PR gas/31903 While elsewhere having realized that "one" doesn't point to a nul- terminated string, it somehow didn't occur to me that the pre-existing strstr() could have been wrong, and hence I blindly added a new use of the function. Add the (already prior to 1e3c814459d8 ["gas: extend \+ support to .rept"]) missing call to sb_terminate(), leveraging that to simplify the other two places where the lack of nul termination was previously worked around.
Diffstat (limited to 'gas/config/tc-i386.c')
0 files changed, 0 insertions, 0 deletions