Fix pkt_mkopt
This commit is contained in:
parent
65f5cabd86
commit
30d1e63c6c
1 changed files with 1 additions and 1 deletions
2
tftp.c
2
tftp.c
|
@ -72,7 +72,7 @@ static inline uint16_t pkt_num(char *pkt)
|
||||||
static char *pkt_mkopt(char *pkt, const char *opt, const char* val)
|
static char *pkt_mkopt(char *pkt, const char *opt, const char* val)
|
||||||
{
|
{
|
||||||
strcpy(pkt, opt);
|
strcpy(pkt, opt);
|
||||||
pkt += strlen(pkt) + 1;
|
pkt += strlen(opt) + 1;
|
||||||
strcpy(pkt, val);
|
strcpy(pkt, val);
|
||||||
pkt += strlen(val) + 1;
|
pkt += strlen(val) + 1;
|
||||||
return pkt;
|
return pkt;
|
||||||
|
|
Loading…
Add table
Reference in a new issue