summaryrefslogtreecommitdiff
path: root/gdb_remote.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-06-28 09:53:17 -0700
committerMichael Pavone <pavone@retrodev.com>2015-06-28 09:53:17 -0700
commitde641ad9418c0d95d58d83e5f4f37d24701c4dcf (patch)
treea3a51f773670f92bb1f02113da947c78b8932ce3 /gdb_remote.c
parent85a13fa44481d4dafd548ed0e92654a9d6aea62f (diff)
More clang warning cleanup
Diffstat (limited to 'gdb_remote.c')
-rw-r--r--gdb_remote.c4
1 files changed, 2 insertions, 2 deletions
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)