BugID:18679699: fix exp8266 flash write bug
@@ -74,7 +74,7 @@ static void flash_write_data(UINT8 *buffer, unsigned int address, unsigned int l
memset(buf, 0xff, size);
memcpy(buf + left_off, buffer, len);
vPortETSIntrLock();
- ret = spi_flash_write(start_addr - left_off, (unsigned int *)buf, len);
+ ret = spi_flash_write(start_addr - left_off, (unsigned int *)buf, size);
vPortETSIntrUnlock();
if(ret != 0)
{
