tftp: fix thinko in code shrink
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 13 Feb 2020 14:03:12 +0000 (15:03 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 13 Feb 2020 14:03:12 +0000 (15:03 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/tftp.c

index 4d608a6fb6a6621a3adddbe836b438ebc91c43bf..043747d0d3b313d08320f54334a30109f65817cc 100644 (file)
@@ -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)