ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/auth.c
(Generate patch)

Comparing:
ircd-hybrid-7.2/src/s_auth.c (file contents), Revision 1013 by michael, Sun Oct 18 14:26:49 2009 UTC vs.
ircd-hybrid/src/s_auth.c (file contents), Revision 1155 by michael, Tue Aug 9 20:27:45 2011 UTC

# Line 44 | Line 44
44   #include "event.h"
45   #include "hook.h"
46   #include "irc_string.h"
47 #include "sprintf_irc.h"
47   #include "ircd.h"
49 #include "numeric.h"
48   #include "packet.h"
49   #include "irc_res.h"
50   #include "s_bsd.h"
# Line 445 | Line 443 | auth_connect_callback(fde_t *fd, int err
443    char authbuf[32];
444    socklen_t ulen = sizeof(struct irc_ssaddr);
445    socklen_t tlen = sizeof(struct irc_ssaddr);
446 <  u_int16_t uport, tport;
446 >  uint16_t uport, tport;
447   #ifdef IPV6
448    struct sockaddr_in6 *v6;
449   #else
# Line 485 | Line 483 | auth_connect_callback(fde_t *fd, int err
483    them.ss_len = tlen;
484   #endif
485    
486 <  ircsprintf(authbuf, "%u , %u\r\n", tport, uport);
486 >  snprintf(authbuf, sizeof(authbuf), "%u , %u\r\n", tport, uport);
487  
488    if (send(fd->fd, authbuf, strlen(authbuf), 0) == -1)
489    {

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)