From 30d1e63c6ce25018f4c8a92956bba054e9a70087 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Wed, 31 May 2017 16:11:49 +0200 Subject: [PATCH] Fix pkt_mkopt --- tftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1