sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 6599b96752ddce0ce13b608faf64584109b0851c
parent d2031cdff9527a5e8562b80dad0a92a6e3ce4931
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 22 Aug 2015 16:03:26 +0200

use HOST_NAME_MAX for hostname

Diffstat:
Msfeed.c | 1+
Msfeed_html.c | 1+
Msfeed_plain.c | 1+
Msfeed_web.c | 1+
Mutil.h | 2+-
5 files changed, 5 insertions(+), 1 deletion(-)

diff --git 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 @@ -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 @@ -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 @@ -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 @@ -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 */ };