patch-src_fltmgr_c 570 B

123456789101112
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- iptraf-3.0.0.orig/src/fltmgr.c 2005-09-13 09:27:51.000000000 +0200
  3. +++ iptraf-3.0.0/src/fltmgr.c 2008-10-09 17:35:25.000000000 +0200
  4. @@ -112,7 +112,7 @@ unsigned long int nametoaddr(char *ascna
  5. he = gethostbyname(ascname);
  6. if (he != NULL)
  7. - bcopy((he->h_addr_list)[0], &result, he->h_length);
  8. + memcpy(&result, (he->h_addr_list)[0], he->h_length);
  9. else {
  10. snprintf(imsg, 45, "Unable to resolve %s", ascname);
  11. write_error(imsg, daemonized);