sfeed

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

commit a6b8f513b92b52ce7462a0c61c7c4843e2f12618
parent 1ce0eaeb223072b94d77f5b818e48ae070ba9e5a
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 27 Feb 2016 16:05:42 +0100

consistency: check snprintf result == -1

Diffstat:
Msfeed.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sfeed.c b/sfeed.c @@ -318,7 +318,7 @@ time_ok: } else { r = snprintf(buf, bufsiz, "%s%c%02d:%02d", tz[0] ? tz : "UTC", c, tzhour, tzmin); - if (r < 0 || (size_t)r >= bufsiz) + if (r == -1 || (size_t)r >= bufsiz) return -1; /* truncation or error */ } if (tzoffset)