diff options
author | Tom Rini <trini@konsulko.com> | 2017-08-07 17:37:56 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-07 17:37:56 -0400 |
commit | 6e7adf7037c76f081b149685fa5e978e2ddf2a22 (patch) | |
tree | 87093f75b7ff78f120fb5bb81706df4ab69ea744 /net/tftp.c | |
parent | b713bc8a2dbaf40ea24dbccf6da4ed02a0035eb6 (diff) | |
parent | da3b9e7fd6a1e38af3cf0dff0248427c9df583ff (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-net
Diffstat (limited to 'net/tftp.c')
-rw-r--r-- | net/tftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tftp.c b/net/tftp.c index ced45ec1f1..61e1671068 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -742,8 +742,8 @@ void tftp_start(enum proto_t protocol) (net_ip.s_addr >> 16) & 0xFF, (net_ip.s_addr >> 24) & 0xFF); - strncpy(tftp_filename, default_filename, MAX_LEN); - tftp_filename[MAX_LEN - 1] = 0; + strncpy(tftp_filename, default_filename, DEFAULT_NAME_LEN); + tftp_filename[DEFAULT_NAME_LEN - 1] = 0; printf("*** Warning: no boot file name; using '%s'\n", tftp_filename); |