summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-08-02 15:07:23 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-08-02 15:07:23 +0200
commit6ae8a568981dafebff41bd913a157d130c176dda (patch)
tree058771ecd65abc82f218a4190785273fb68e5ad9
parentec254ccf06b80f3f276d8dc0120f4f7e6ba6141f (diff)
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.
-rw-r--r--sfeed_frames.c2
1 files changed, 1 insertions, 1 deletions
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;