• Mike Frysinger's avatar
    lib: inet6: clean up INET6_print a bit · c5a91aa5
    Mike Frysinger authored
    There's no need to cast the char* to a struct in6_addr*, so delete
    that logic.
    
    Switch the hardcoded 80 limit to the INET6_ADDRSTRLEN constant.
    
    Make sure the buffer we pass into inet_ntop is always NUL terminated.
    c5a91aa5
inet6.c 4.93 KB