summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfeed.c1
-rw-r--r--sfeed_html.c1
-rw-r--r--sfeed_plain.c1
-rw-r--r--sfeed_web.c1
-rw-r--r--util.h2
5 files changed, 5 insertions, 1 deletions
diff --git a/sfeed.c b/sfeed.c
index bb7cbdd..fd00a83 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -1,6 +1,7 @@
#include <ctype.h>
#include <err.h>
#include <errno.h>
+#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/sfeed_html.c b/sfeed_html.c
index 63e6ca6..04addcc 100644
--- a/sfeed_html.c
+++ b/sfeed_html.c
@@ -1,5 +1,6 @@
#include <ctype.h>
#include <err.h>
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/sfeed_plain.c b/sfeed_plain.c
index 64c2b68..4954b35 100644
--- a/sfeed_plain.c
+++ b/sfeed_plain.c
@@ -1,5 +1,6 @@
#include <ctype.h>
#include <err.h>
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/sfeed_web.c b/sfeed_web.c
index 4ecbf0d..29cecfc 100644
--- a/sfeed_web.c
+++ b/sfeed_web.c
@@ -1,4 +1,5 @@
#include <ctype.h>
+#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/util.h b/util.h
index e4aa990..d0bffa9 100644
--- a/util.h
+++ b/util.h
@@ -17,7 +17,7 @@ struct feed {
/* uri */
struct uri {
char proto[48];
- char host[255];
+ char host[HOST_NAME_MAX];
char path[2048];
char port[6]; /* numeric port */
};