summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-02-26 22:26:17 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-02-26 22:26:17 +0000
commit84d600a1b988867a0d55446c1ba388a414c0f11a (patch)
treec231ee7ffb3d1ff3d3213582e3e6acdcd6867915
parent2c7dc6b646fc93142c1a5e139dbc74c5a31f44e0 (diff)
Provide a buffer large enough for its contents in pal_opname(). ok deraadt@
-rw-r--r--sys/arch/alpha/alpha/db_disasm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/alpha/alpha/db_disasm.c b/sys/arch/alpha/alpha/db_disasm.c
index a9d87c22e55..4f8f707a373 100644
--- a/sys/arch/alpha/alpha/db_disasm.c
+++ b/sys/arch/alpha/alpha/db_disasm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_disasm.c,v 1.17 2003/05/10 21:11:11 deraadt Exp $ */
+/* $OpenBSD: db_disasm.c,v 1.18 2006/02/26 22:26:16 miod Exp $ */
/* $NetBSD: db_disasm.c,v 1.8 2000/05/25 19:57:30 jhawk Exp $ */
/*
@@ -192,7 +192,7 @@ static const char *
pal_opname(op)
int op;
{
- static char unk[8];
+ static char unk[11];
int i;
for (i = 0; pal_op_tbl[i].name != NULL; i++) {