]> hackdaworld.org Git - my-code/arm.git/commitdiff
get rid of overflow warning
authorhackbard <hackbard@staubsauger.localdomain>
Fri, 14 Sep 2007 21:13:21 +0000 (23:13 +0200)
committerhackbard <hackbard@staubsauger.localdomain>
Fri, 14 Sep 2007 21:13:21 +0000 (23:13 +0200)
betty/fwflash.c

index 85a64fa8e95458097e129742d509fcfeca1d8e3c..26a68a8198065f095ed306618faf003de87814e9 100644 (file)
@@ -467,7 +467,8 @@ int main(void) {
                                uart0_send_buf16((u16 *)addr,datalen);
                        if((addr>=BANK2)&(addr+datalen<=BANK2+BANK_SIZE))
                                uart0_send_buf16((u16 *)addr,datalen);
-                       if((addr>=BOOTLOADER)&(addr+datalen<=BOOTLOADER+BL_SIZE))
+                       if((addr>=BOOTLOADER)&
+                          (addr+datalen<BOOTLOADER-1+BL_SIZE))
                                uart0_send_buf32((u32 *)addr,datalen);
                        break;
                case CMD_WRITE: