aboutsummaryrefslogtreecommitdiffstats
path: root/fm.c
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-07-25 17:03:46 +0800
committerverdant <im@verdant.ee>2026-07-25 20:25:22 +0800
commitd18ee4ae5ae750ce46fa81e2689dc995037b414f (patch)
tree656470a611f87efdc2a07e7b0326670fd753a5d4 /fm.c
parentce35eaf6a0f993de1d4bda42679bd33063304356 (diff)
downloadsf-d18ee4ae5ae750ce46fa81e2689dc995037b414f.tar.gz
sf-d18ee4ae5ae750ce46fa81e2689dc995037b414f.zip
Fix format string vulnerability in file preview
Diffstat (limited to 'fm.c')
-rw-r--r--fm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fm.c b/fm.c
index ab096ea..c5c5b30 100644
--- a/fm.c
+++ b/fm.c
@@ -193,7 +193,7 @@ static char *fm_print_preview_content(window *w, const char *path)
int i = 0;
while (fgets(buf, PATH_MAX, fp) != NULL && i < w->height) {
- mvwprintw(w->win, i, 0, buf);
+ mvwprintw(w->win, i, 0, "%s", buf);
i++;
}