httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@hyperreal.org
Subject cvs commit: apache-2.0/src/lib/apr/network_io/unix sockets.c
Date Sun, 12 Sep 1999 11:19:30 GMT
ben         99/09/12 04:19:30

  Modified:    src/lib/apr/network_io/unix sockets.c
  Log:
  Make ap_getipaddr return the buffer, rather than copy it.
  
  Revision  Changes    Path
  1.6       +2 -2      apache-2.0/src/lib/apr/network_io/unix/sockets.c
  
  Index: sockets.c
  ===================================================================
  RCS file: /export/home/cvs/apache-2.0/src/lib/apr/network_io/unix/sockets.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- sockets.c	1999/09/07 21:24:44	1.5
  +++ sockets.c	1999/09/12 11:19:30	1.6
  @@ -196,7 +196,7 @@
   }
   
   /* ***APRDOC********************************************************
  - * ap_status_t ap_getipaddr(ap_socket_t *, char *addr)
  + * ap_status_t ap_getipaddr(ap_socket_t *, char **addr)
    *    Return the IP address associated with an apr socket.
    * arg 1) The socket to use 
    * arg 2) The IP address associated with the socket.
  @@ -204,7 +204,7 @@
   ap_status_t ap_getipaddr(struct socket_t *sock, char **addr)
   {
       char *temp = inet_ntoa(sock->addr->sin_addr);
  -    strcpy(*addr, temp);
  +    *addr=temp;
       return APR_SUCCESS;
   }
   
  
  
  

Mime
View raw message