From de641ad9418c0d95d58d83e5f4f37d24701c4dcf Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 28 Jun 2015 09:53:17 -0700 Subject: More clang warning cleanup --- gdb_remote.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb_remote.c') diff --git a/gdb_remote.c b/gdb_remote.c index dd6a98a..764cf83 100644 --- a/gdb_remote.c +++ b/gdb_remote.c @@ -283,8 +283,8 @@ void gdb_run_command(m68k_context * context, uint32_t pc, char * command) char * rest; uint32_t address = strtoul(command+1, &rest, 16); uint32_t size = strtoul(rest+1, NULL, 16); - if (size > sizeof(send_buf-1)/2) { - size = sizeof(send_buf-1)/2; + if (size > (sizeof(send_buf)-1)/2) { + size = (sizeof(send_buf)-1)/2; } char *cur = send_buf; while (size) -- cgit v1.2.3