aboutsummaryrefslogtreecommitdiffstats
path: root/com32/sysdump/be_tftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/sysdump/be_tftp.c')
-rw-r--r--com32/sysdump/be_tftp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/com32/sysdump/be_tftp.c b/com32/sysdump/be_tftp.c
index 79642385..07fdb084 100644
--- a/com32/sysdump/be_tftp.c
+++ b/com32/sysdump/be_tftp.c
@@ -126,6 +126,7 @@ static int be_tftp_write(struct backend *be)
*((uint16_t *)(buffer+2)) = htons(++tftp.seq);
memcpy(buffer+4, data, chunk);
data += chunk;
+ len -= chunk;
if (send_ack_packet(&tftp, buffer, chunk+4))
return -1;