summaryrefslogtreecommitdiff
path: root/sfeed_frames.c
diff options
context:
space:
mode:
Diffstat (limited to 'sfeed_frames.c')
-rw-r--r--sfeed_frames.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed_frames.c b/sfeed_frames.c
index 28bfa61..57efdf3 100644
--- a/sfeed_frames.c
+++ b/sfeed_frames.c
@@ -120,8 +120,8 @@ printfeed(FILE *fpitems, FILE *fpin, struct feed *f)
if (!(namelen = normalizepath(feedname, name, sizeof(name))))
return;
- if (strlcpy(dirpath, name, sizeof(dirpath)) >= sizeof(dirpath))
- errx(1, "strlcpy: path truncation");
+ strlcpy(dirpath, name, sizeof(dirpath));
+
/* directory doesn't exist: try to create it. */
if (stat(dirpath, &st) == -1 && mkdir(dirpath, S_IRWXU) == -1)
err(1, "mkdir: %s", dirpath);