1
0
mirror of https://github.com/solemnwarning/ipxwrapper synced 2024-12-30 16:45:37 +01:00

Bugfix for addr48_from_string.

This commit is contained in:
Daniel Collins 2012-10-21 11:02:09 +00:00
parent 32bf06ebed
commit c6e1cc9665

View File

@ -142,7 +142,7 @@ char *addr48_string(char *buf, addr48_t addr)
*/ */
bool addr48_from_string(addr48_t *dest, const char *src) bool addr48_from_string(addr48_t *dest, const char *src)
{ {
return _addr_from_string((unsigned char*)&dest, src, 6); return _addr_from_string(((unsigned char*)&dest) + 2, src, 6);
} }
/* Read a 48-bit network address from the registry. /* Read a 48-bit network address from the registry.