This commit is contained in:
helloworld0xf 2017-06-22 06:14:40 +08:00
parent 8ac6972612
commit 353f25cd78

2
n2n.c
View File

@ -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 )