sfeed

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

commit 6ae8a568981dafebff41bd913a157d130c176dda
parent ec254ccf06b80f3f276d8dc0120f4f7e6ba6141f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun,  2 Aug 2015 15:07:23 +0200

sfeed_frames: limit titles and feednames to 128 chars for filenames

This prevents unnecessary path-truncation in some cases, with the side-effect
it can overwrite items with the same title more often.

We handle path truncation as a fatal error, so this was annoying.

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

diff --git a/sfeed_frames.c b/sfeed_frames.c @@ -77,7 +77,7 @@ printfeed(FILE *fpitems, FILE *fpin, struct feed *f) { char dirpath[PATH_MAX], filepath[PATH_MAX]; char *fields[FieldLast], *feedname; - char name[PATH_MAX]; + char name[128]; size_t namelen; struct stat st; FILE *fpcontent = NULL;