You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
375 B

  1. --- a/src/addrwatch.c
  2. +++ b/src/addrwatch.c
  3. @@ -501,7 +501,7 @@ int main(int argc, char *argv[])
  4. argp_parse(&argp, argc, argv, 0, &optind, 0);
  5. if (!cfg.hostname) {
  6. - cfg.hostname_len = sysconf(_SC_HOST_NAME_MAX);
  7. + cfg.hostname_len = HOST_NAME_MAX;
  8. cfg.hostname = (char *)calloc(cfg.hostname_len, sizeof(char));
  9. gethostname(cfg.hostname, cfg.hostname_len);
  10. }