aboutsummaryrefslogtreecommitdiff
path: root/opcodes/s390-mkopc.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2010-09-30 11:32:15 +0000
committerPierre Muller <muller@sourceware.org>2010-09-30 11:32:15 +0000
commitd2ae9c847a107449b04d81f50ba6c6ba7e81ad2a (patch)
treec1e0c7977022e365319dc1834e767130cb7f360e /opcodes/s390-mkopc.c
parente9e07ba6db5fb651b153da7bde8a6ee4509172f0 (diff)
downloadgdb-d2ae9c847a107449b04d81f50ba6c6ba7e81ad2a.zip
gdb-d2ae9c847a107449b04d81f50ba6c6ba7e81ad2a.tar.gz
gdb-d2ae9c847a107449b04d81f50ba6c6ba7e81ad2a.tar.bz2
* 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/s390-mkopc.c b/opcodes/s390-mkopc.c
index 84981cc..d4cf3c9 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)
{