summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-09-09 00:25:08 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-09-09 00:25:08 +0200
commit5ae58d5ce662681b91f1ab207b2ac14358ab678b (patch)
tree7d8d28929ef4cd8b735bfa759ad6b840a812c94e
parent951252ff9dd357b499c7b72561676a45e83a4797 (diff)
util.h: HOST_NAME_MAX+1 for nul-terminator
-rw-r--r--util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.h b/util.h
index 59ddadf..ffd4a3a 100644
--- a/util.h
+++ b/util.h
@@ -15,7 +15,7 @@ struct feed {
/* uri */
struct uri {
char proto[48];
- char host[HOST_NAME_MAX];
+ char host[HOST_NAME_MAX + 1];
char path[2048];
char port[6]; /* numeric port */
};