diff options
author | Jens Remus <jremus@linux.ibm.com> | 2023-12-20 11:17:39 +0100 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.ibm.com> | 2023-12-20 11:50:32 +0100 |
commit | a3fa108623c51846ff019fbcba9f483897d6f5f7 (patch) | |
tree | 509df2ed1078548ef3caccf98b854bef1aa8e706 /include/opcode | |
parent | 730e7ddc243edff2755548c89dedac7293e5a5f6 (diff) | |
download | binutils-a3fa108623c51846ff019fbcba9f483897d6f5f7.zip binutils-a3fa108623c51846ff019fbcba9f483897d6f5f7.tar.gz binutils-a3fa108623c51846ff019fbcba9f483897d6f5f7.tar.bz2 |
s390: Use safe string functions and length macros in s390-mkopc
Use strncpy() and snprintf() instead of strcpy() and strcat(). Define
and use macros for string lengths, such as mnemonic, instruction
format, and instruction description.
This is a mechanical change, although some buffers have increased in
length by one character. This has been confirmed by verifying that the
generated opcode/s390-opc.tab is unchanged.
opcodes/
* s390-mkopc.c: Use strncpy() and strncat().
Suggested-by: Nick Clifton <nickc@redhat.com>
Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Reviewed-by: Andreas Krebbel <krebbel@linux.ibm.com>
Diffstat (limited to 'include/opcode')
0 files changed, 0 insertions, 0 deletions