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.3/src/s_auth.c (file contents):
Revision 1032 by michael, Thu Dec 3 18:45:37 2009 UTC vs.
Revision 1124 by michael, Mon Feb 7 11:45:27 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 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)