summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/firmware-utils/src/airlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/airlink.c b/tools/firmware-utils/src/airlink.c
index a98aba766..aae68ebed 100644
--- a/tools/firmware-utils/src/airlink.c
+++ b/tools/firmware-utils/src/airlink.c
@@ -288,7 +288,7 @@ int main(int argc, char **argv)
*((u32 *) & buf[0x4]) = 0x0L;
memcpy(b, buf, 0x100);
memcpy(b + 0x100, buf + ((l0 >> 1) - ((l0 & 0x6) >> 1)), 0x100);
- memcpy(b + 0x200, buf + (I0 - 0x200), 0x200);
+ memcpy(b + 0x200, buf + (l0 - 0x200), 0x200);
*((u32 *) & b[0x18]) = 0x0L;
sum = crc32(b, 0x400);