From f5a7b58eaaac1b370a1850d9f2cd6fa652187ecf Mon Sep 17 00:00:00 2001 From: helloworld0xf Date: Thu, 22 Jun 2017 06:14:40 +0800 Subject: [PATCH] --- n2n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/n2n.c b/n2n.c index ac98ad6..b2c84f9 100644 --- a/n2n.c +++ b/n2n.c @@ -386,7 +386,7 @@ static uint8_t hex2byte( const char * s ) tmp[1]=s[1]; tmp[2]=0; /* NULL term */ - return((uint8_t)strtol( s, NULL, 16 )); + return((uint8_t)strtol( tmp, NULL, 16 )); } extern int str2mac( uint8_t * outmac /* 6 bytes */, const char * s )