summaryrefslogtreecommitdiff
path: root/apps/system/zmodem/zm_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/system/zmodem/zm_utils.c')
-rw-r--r--apps/system/zmodem/zm_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/system/zmodem/zm_utils.c b/apps/system/zmodem/zm_utils.c
index f9fa2ae08..95eae7e8d 100644
--- a/apps/system/zmodem/zm_utils.c
+++ b/apps/system/zmodem/zm_utils.c
@@ -440,7 +440,7 @@ uint32_t zm_filecrc(FAR struct zm_state_s *pzm, FAR const char *filename)
crc = 0xffffffff;
while ((nread = zm_read(fd, pzm->scratch, CONFIG_SYSTEM_ZMODEM_SNDBUFSIZE)) > 0)
{
- crc = crc32part(pzm->rcvbuf, nread, crc);
+ crc = crc32part(pzm->scratch, nread, crc);
}
/* Close the file and return the CRC */