diff options
author | Pierre Muller <muller@ics.u-strasbg.fr> | 2010-09-30 11:32:15 +0000 |
---|---|---|
committer | Pierre Muller <muller@ics.u-strasbg.fr> | 2010-09-30 11:32:15 +0000 |
commit | 742e4fba750044d4f79f48b05db2ee28aba7fba6 (patch) | |
tree | b1633829a981a14263da9e86403508d00f6e0337 /opcodes/s390-mkopc.c | |
parent | caf77414df0ffe5a5e8384a2f47e78dce3fb3b0e (diff) | |
download | binutils-redhat-742e4fba750044d4f79f48b05db2ee28aba7fba6.tar.gz |
* s390-mkopc.c (main): Change description array size to 80.
Add maximum length of 79 to description parsing.
Diffstat (limited to 'opcodes/s390-mkopc.c')
-rw-r--r-- | opcodes/s390-mkopc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/s390-mkopc.c b/opcodes/s390-mkopc.c index 84981ccebf..d4cf3c999d 100644 --- a/opcodes/s390-mkopc.c +++ b/opcodes/s390-mkopc.c @@ -335,7 +335,7 @@ main (void) char opcode[16]; char mnemonic[16]; char format[16]; - char description[64]; + char description[80]; char cpu_string[16]; char modes_string[16]; int min_cpu; @@ -345,7 +345,7 @@ main (void) if (currentLine[0] == '#') continue; memset (opcode, 0, 8); - if (sscanf (currentLine, "%15s %15s %15s \"%[^\"]\" %15s %15s", + if (sscanf (currentLine, "%15s %15s %15s \"%79[^\"]\" %15s %15s", opcode, mnemonic, format, description, cpu_string, modes_string) == 6) { |