提交 c01352da 编写于 作者: armink_ztl's avatar armink_ztl

[LWIP] Fix lwip 2.0.2 TFTP server file name trans error.

上级 1bfdc7dd
......@@ -226,8 +226,8 @@ recv(void *arg, struct udp_pcb *upcb, struct pbuf *p, const ip_addr_t *addr, u16
case PP_HTONS(TFTP_WRQ):
{
const char tftp_null = 0;
char filename[TFTP_MAX_FILENAME_LEN];
char mode[TFTP_MAX_MODE_LEN];
char filename[TFTP_MAX_FILENAME_LEN] = { 0 };
char mode[TFTP_MAX_MODE_LEN] = { 0 };
u16_t filename_end_offset;
u16_t mode_end_offset;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册