mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 16:41:11 +02:00
Merge pull request #4 from helloworld0xf/master
Use replace strtol s to tmp
This commit is contained in:
commit
21055550f3
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…
Reference in New Issue
Block a user