From: Pierre Muller Date: Thu, 30 Sep 2010 11:32:15 +0000 (+0000) Subject: * s390-mkopc.c (main): Change description array size to 80. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2ae9c847a107449b04d81f50ba6c6ba7e81ad2a;p=binutils-gdb.git * s390-mkopc.c (main): Change description array size to 80. Add maximum length of 79 to description parsing. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 312fb74d6b2..379a2986cf4 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2010-09-28 Pierre Muller + + * s390-mkopc.c (main): Change description array size to 80. + Add maximum length of 79 to description parsing. + 2010-09-27 Ralf Wildenhues * configure: Regenerate. diff --git a/opcodes/s390-mkopc.c b/opcodes/s390-mkopc.c index 84981ccebf4..d4cf3c999d8 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) {