From: Joseph C. Lehner Date: Wed, 31 May 2017 14:11:49 +0000 (+0200) Subject: Fix pkt_mkopt X-Git-Tag: v0.9.13~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=30d1e63c6ce25018f4c8a92956bba054e9a70087;p=oweals%2Fnmrpflash.git Fix pkt_mkopt --- diff --git a/tftp.c b/tftp.c index 5189cbf..de8f765 100644 --- a/tftp.c +++ b/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) { strcpy(pkt, opt); - pkt += strlen(pkt) + 1; + pkt += strlen(opt) + 1; strcpy(pkt, val); pkt += strlen(val) + 1; return pkt;