ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/irc.c
(Generate patch)

Comparing hopm/trunk/src/irc.c (file contents):
Revision 5091 by michael, Tue Dec 23 19:59:18 2014 UTC vs.
Revision 5092 by michael, Tue Dec 23 20:12:39 2014 UTC

# Line 715 | Line 715 | static struct UserInfo *userinfo_create(
715     int i, len;
716  
717     nick = username = hostname = NULL;
718 <   tmp = DupString(source);
718 >   tmp = xstrdup(source);
719     len = strlen(tmp);
720  
721     nick = tmp;
# Line 742 | Line 742 | static struct UserInfo *userinfo_create(
742  
743     ret = MyMalloc(sizeof *ret);
744  
745 <   ret->irc_nick     = DupString(nick);
746 <   ret->irc_username = DupString(username);
747 <   ret->irc_hostname = DupString(hostname);
745 >   ret->irc_nick     = xstrdup(nick);
746 >   ret->irc_username = xstrdup(username);
747 >   ret->irc_hostname = xstrdup(hostname);
748  
749     MyFree(tmp);
750  

Diff Legend

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