Browse Source

Merge pull request #4 from helloworld0xf/master

Use replace strtol s to tmp
pull/7/head
Luca Deri 7 years ago
committed by GitHub
parent
commit
21055550f3
  1. 2
      n2n.c

2
n2n.c

@ -386,7 +386,7 @@ static uint8_t hex2byte( const char * s )
tmp[1]=s[1]; tmp[1]=s[1];
tmp[2]=0; /* NULL term */ 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 ) extern int str2mac( uint8_t * outmac /* 6 bytes */, const char * s )

Loading…
Cancel
Save