diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-10-04 23:29:17 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-10-04 23:44:51 +0200 |
commit | 7e6245aa708526949100478f5847704a7dd6eac2 (patch) | |
tree | 798f4274e58a4468f6eb068da2200a377e069031 /sfeed_mbox.c | |
parent | f9d8ddb73c6297de4702cde6382db6378786d420 (diff) |
portability: dont use HOST_NAME_MAX, just use 256 as maximum
Diffstat (limited to 'sfeed_mbox.c')
-rw-r--r-- | sfeed_mbox.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sfeed_mbox.c b/sfeed_mbox.c index a093c46..0ee5bfd 100644 --- a/sfeed_mbox.c +++ b/sfeed_mbox.c @@ -2,7 +2,6 @@ #include <err.h> #include <inttypes.h> -#include <limits.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> @@ -79,7 +78,7 @@ printfeed(FILE *fp, const char *feedname) { struct tm tm; char *fields[FieldLast], timebuf[32], mtimebuf[32]; - char host[HOST_NAME_MAX + 1], *user; + char host[256], *user; time_t parsedtime; if (!(user = getenv("USER"))) |