diff gdb_remote.c @ 757:483f7e7926a6

More clang warning cleanup
author Michael Pavone <pavone@retrodev.com>
date Sun, 28 Jun 2015 09:53:17 -0700
parents 9324f721efa6
children 724bbec47f86
line wrap: on
line diff
--- a/gdb_remote.c	Sat Jun 27 13:18:55 2015 -0700
+++ b/gdb_remote.c	Sun Jun 28 09:53:17 2015 -0700
@@ -283,8 +283,8 @@
 		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)