openbsd-ports/devel/gputils/patches/patch-gputils_gpdasm_c

13 lines
566 B
Plaintext

$OpenBSD: patch-gputils_gpdasm_c,v 1.2 2004/01/30 01:01:11 naddy Exp $
--- gputils/gpdasm.c.orig 2004-01-17 13:33:51.000000000 +1100
+++ gputils/gpdasm.c 2004-01-25 20:36:31.000000000 +1100
@@ -131,7 +131,7 @@ void dasm(MemBlock *memory)
} else {
printf(" ");
}
- gp_disassemble(memory, &i, state.class, buffer);
+ gp_disassemble(memory, &i, state.class, buffer, sizeof(buffer));
printf("%s\n", buffer);
if ((state.format) && (i != lastloc)) {
/* some 18xx instructions use two words */