diff options
| author | Stef Walter <stef@memberwebs.com> | 2005-07-12 15:22:39 +0000 | 
|---|---|---|
| committer | Stef Walter <stef@memberwebs.com> | 2005-07-12 15:22:39 +0000 | 
| commit | 59300e0e984840851014e5056b126161b1d9c7e0 (patch) | |
| tree | 1a4711d488fe46f061297df1ff078c7e3b366f75 | |
| parent | 5f38d6f9a3768cc528521bde23256056a34985f6 (diff) | |
Fix problem with binding to certain 'long' addresses
| -rw-r--r-- | common/sock_any.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/common/sock_any.c b/common/sock_any.c index 7535e02..fc38768 100644 --- a/common/sock_any.c +++ b/common/sock_any.c @@ -116,7 +116,7 @@ int sock_any_pton(const char* addr, struct sockaddr_any* any, int opts)      #define IPV4_PORT_CHARS      #define IPV4_CHARS  "0123456789."      #define IPV4_MIN    3 -    #define IPV4_MAX    18 +    #define IPV4_MAX    21      int port = 0;      t = NULL; @@ -166,7 +166,7 @@ int sock_any_pton(const char* addr, struct sockaddr_any* any, int opts)    {      #define IPV6_CHARS  "0123456789:"      #define IPV6_MIN    3 -    #define IPV6_MAX    48 +    #define IPV6_MAX    51      int port = -1;      t = NULL; | 
