This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 437dba336ee914750217caf6e1ce52bdfb6f3105 Author: Alin Jerpelea <[email protected]> AuthorDate: Mon Dec 30 14:27:28 2019 +0900 system: zmodem: Fix debug assert condition --- system/zmodem/zm_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/zmodem/zm_state.c b/system/zmodem/zm_state.c index 7584471..a646bd3 100644 --- a/system/zmodem/zm_state.c +++ b/system/zmodem/zm_state.c @@ -755,7 +755,7 @@ static int zm_parse(FAR struct zm_state_s *pzm, size_t rcvlen) uint8_t ch; int ret; - DEBUGASSERT(pzm && rcvlen < CONFIG_SYSTEM_ZMODEM_RCVBUFSIZE); + DEBUGASSERT(pzm && rcvlen <= CONFIG_SYSTEM_ZMODEM_RCVBUFSIZE); zm_dumpbuffer("Received", pzm->rcvbuf, rcvlen); /* We keep a copy of the length and buffer index in the state structure.
