patch-ircd_s_user_c 910 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-ircd_s_user_c,v 1.2 2001/04/20 07:31:36 bmc Exp $
  2. --- ircd/s_user.c.orig Tue Jun 6 18:35:12 2000
  3. +++ ircd/s_user.c Fri Apr 20 02:52:27 2001
  4. @@ -2376,7 +2376,7 @@ char *parv[];
  5. parv[0], sptr->user->username, sptr->user->host,
  6. sptr->auth, IsUnixSocket(sptr) ? sptr->sockhost :
  7. #ifdef INET6
  8. - inet_ntop(AF_INET6, (char *)&sptr->ip), mydummy, MYDUMMY_SIZE);
  9. + inet_ntop(AF_INET6, (char *)&sptr->ip, mydummy, sizeof(mydummy)));
  10. #else
  11. inetntoa((char *)&sptr->ip));
  12. #endif
  13. @@ -2403,7 +2403,7 @@ char *parv[];
  14. parv[0], sptr->user->username, sptr->user->host,
  15. sptr->auth, IsUnixSocket(sptr) ? sptr->sockhost :
  16. #ifdef INET6
  17. - inetntop(AF_INET6, (char *)&sptr->ip, mydummy,
  18. + inet_ntop(AF_INET6, (char *)&sptr->ip, mydummy,
  19. MYDUMMY_SIZE));
  20. #else
  21. inetntoa((char *)&sptr->ip));