diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-07-14 14:19:17 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-07-14 14:19:17 -0600 |
commit | e74cb48dbf42b5dd3d5754a45883208bb2aa1c21 (patch) | |
tree | 13a52bc544fc640caf81eb51c40242edb51c7295 /apps/system/zmodem/zm_send.c | |
parent | 2b17010dee9c2f2a4755fa419158bcbd92fbdc7e (diff) | |
download | nuttx-e74cb48dbf42b5dd3d5754a45883208bb2aa1c21.tar.gz nuttx-e74cb48dbf42b5dd3d5754a45883208bb2aa1c21.tar.bz2 nuttx-e74cb48dbf42b5dd3d5754a45883208bb2aa1c21.zip |
Several fixes realted to receiving Zmodem files
Diffstat (limited to 'apps/system/zmodem/zm_send.c')
-rw-r--r-- | apps/system/zmodem/zm_send.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/system/zmodem/zm_send.c b/apps/system/zmodem/zm_send.c index b42525644..edb34204d 100644 --- a/apps/system/zmodem/zm_send.c +++ b/apps/system/zmodem/zm_send.c @@ -629,8 +629,8 @@ static int zms_message(FAR struct zm_state_s *pzm) static int zms_stderrdata(FAR struct zm_state_s *pzm) { zmdbg("ZMS_STATE %d\n", pzm->state); - pzm->rcvbuf[pzm->rcvndx] = '\0'; - fprintf(stderr, "Message: %s", (char*)pzm->rcvbuf); + pzm->pktbuf[pzm->pktlen] = '\0'; + fprintf(stderr, "Message: %s", (char*)pzm->pktbuf); return OK; } |