aboutsummaryrefslogtreecommitdiffstats
path: root/com32/sysdump/be_tftp.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-07 16:26:40 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-07 16:26:40 -0800
commit9bb975b60999ddd94610b2d66ac7b2b9bfaaea20 (patch)
treebabfba3570be52426078b00330dc05d6dfa35d0d /com32/sysdump/be_tftp.c
parent88f5f9b480f036ef9da9cf9deb41935c9ad9743c (diff)
downloadsyslinux.git-9bb975b60999ddd94610b2d66ac7b2b9bfaaea20.tar.gz
syslinux.git-9bb975b60999ddd94610b2d66ac7b2b9bfaaea20.tar.xz
syslinux.git-9bb975b60999ddd94610b2d66ac7b2b9bfaaea20.zip
sysdump: actually make the new backend system worksyslinux-3.85-pre8
With these changes, both TFTP and Ymodem seem to actually work. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
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;