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

Comparing:
ircd-hybrid/src/irc_string.c (file contents), Revision 31 by knight, Sun Oct 2 20:34:05 2005 UTC vs.
ircd-hybrid-7.2/src/irc_string.c (file contents), Revision 593 by michael, Fri May 12 05:47:32 2006 UTC

# Line 44 | Line 44
44   #endif
45  
46  
47 char *
48 xstrldup(const char *s, size_t n)
49 {
50  size_t len = strlen(s) + 1;
51  char *p = NULL;
52
53  if (len > n)
54    len = n;
55  return strlcpy((p = malloc(len)), s, len), p;
56 }
57
47   /*
48   * myctime - This is like standard ctime()-function, but it zaps away
49   *   the newline from the end of that string. Also, it takes
# Line 339 | Line 328 | inet_ntop6(const unsigned char *src, cha
328           * to use pointer overlays.  All the world's not a VAX.
329           */
330          char tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp;
331 <        struct { int base, len; } best, cur;
331 >        struct { int base, len; } best = {0,0}, cur = {0,0};
332          unsigned int words[IN6ADDRSZ / INT16SZ];
333          int i;
334  

Comparing:
ircd-hybrid/src/irc_string.c (property svn:keywords), Revision 31 by knight, Sun Oct 2 20:34:05 2005 UTC vs.
ircd-hybrid-7.2/src/irc_string.c (property svn:keywords), Revision 593 by michael, Fri May 12 05:47:32 2006 UTC

# Line 1 | Line 1
1 < "Id Revision"
1 > Id Revision

Diff Legend

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