From 6ae8a568981dafebff41bd913a157d130c176dda Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 2 Aug 2015 15:07:23 +0200 Subject: 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. --- sfeed_frames.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfeed_frames.c b/sfeed_frames.c index 9744007..ab18408 100644 --- 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; -- cgit v1.2.3