[git commit] tftp: fix thinko in code shrink

Denys Vlasenko vda.linux at googlemail.com
Thu Feb 13 14:03:12 UTC 2020


commit: https://git.busybox.net/busybox/commit/?id=0c4e5977dfc32b54e452cd88a9cf14afde29c89d
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/tftp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/networking/tftp.c b/networking/tftp.c
index 4d608a6fb..043747d0d 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -466,7 +466,7 @@ static int tftp_protocol(
 		}
 		cp = stpcpy(cp, remote_file) + 1;
 		/* add "mode" part of the packet */
-		cp = stpcpy(cp, "octet");
+		cp = stpcpy(cp, "octet") + 1;
 
 # if ENABLE_FEATURE_TFTP_BLOCKSIZE
 		if (blksize == TFTP_BLKSIZE_DEFAULT && !want_transfer_size)


More information about the busybox-cvs mailing list