tftp: fix thinko in code shrink

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2020-02-13 15:03:12 +01:00
parent 779df9f228
commit 0c4e5977df

View 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)