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

Comparing ircd-hybrid/trunk/src/hash.c (file contents):
Revision 3908 by michael, Fri Jun 6 23:57:28 2014 UTC vs.
Revision 4086 by michael, Sat Jun 28 16:44:20 2014 UTC

# Line 546 | Line 546 | find_or_add_userhost(const char *host)
546  
547    userhost = mp_pool_get(userhost_pool);
548  
549  memset(userhost, 0, sizeof(*userhost));
549    strlcpy(userhost->host, host, sizeof(userhost->host));
550    hash_add_userhost(userhost);
551  
# Line 598 | Line 597 | add_user_host(const char *user, const ch
597    }
598  
599    nameh = mp_pool_get(namehost_pool);
600 <  memset(nameh, 0, sizeof(*nameh));
600 >
601    strlcpy(nameh->name, user, sizeof(nameh->name));
602  
603    nameh->gcount = 1;

Diff Legend

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