From c4aef2db4f14b811ab4113c6f2adda3b9e957285 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 23 Apr 2011 01:11:20 +0000 Subject: [PATCH] The encoding of instructions of slightly more correct --- src/arch/java.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/arch/java.c b/src/arch/java.c index 4de293d..2e4fc79 100644 --- a/src/arch/java.c +++ b/src/arch/java.c @@ -275,8 +275,7 @@ static int _java_write(ArchPlugin * plugin, ArchInstruction * instruction, ArchPluginHelper * helper = plugin->helper; /* FIXME really implement */ - return (fwrite(&instruction->opcode, sizeof(instruction->opcode), 1, - helper->fp) == 1) ? 0 - : -error_set_code(1, "%s: %s", helper->filename, + return (fwrite(&instruction->opcode, sizeof(char), 1, helper->fp) == 1) + ? 0 : -error_set_code(1, "%s: %s", helper->filename, strerror(errno)); }