101-Fix-Werror-sizeof-pointer-memaccess.patch 319 B

1234567891011
  1. --- a/src/local.c
  2. +++ b/src/local.c
  3. @@ -718,7 +718,7 @@ server_recv_cb(EV_P_ ev_io *w, int reven
  4. ss_free(hostname);
  5. } else {
  6. - strncpy(host, ip, sizeof(ip));
  7. + strncpy(host, ip, INET6_ADDRSTRLEN);
  8. }
  9. }