trawick     01/03/08 12:13:53

  Modified:    network_io/unix inet_ntop.c
  Log:
  Let apr_inet_ntop() (and thus apr_sockaddr_ip_get()) work again for
  IPv6 addresses.  I broke it in the change from sprintf() to apr_snprintf() :(
  
  Revision  Changes    Path
  1.9       +1 -1      apr/network_io/unix/inet_ntop.c
  
  Index: inet_ntop.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/inet_ntop.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- inet_ntop.c       2001/03/07 17:51:56     1.8
  +++ inet_ntop.c       2001/03/08 20:13:51     1.9
  @@ -186,7 +186,7 @@
                        tp += strlen(tp);
                        break;
                }
  -             tp += apr_snprintf(tp, sizeof tp, "%x", words[i]);
  +             tp += apr_snprintf(tp, sizeof tmp - (tp - tmp), "%x", words[i]);
        }
        /* Was it a trailing run of 0x00's? */
        if (best.base != -1 && (best.base + best.len) == (IN6ADDRSZ / INT16SZ))
  
  
  

Reply via email to