sfm

simple file manager
git clone https://git.afify.dev/sfm.git
Log | Files | Refs | README | LICENSE

commit 9349f44f5951e5f8fa93e7c8461f7216c6cabf94
parent f2246db87f23ee9dfa94f269a81f05e506fca8f6
Author: afify <hassan@afify.dev>
Date:   Sat, 19 Mar 2022 21:05:27 +0300

[fix] Non-latin file names are truncated

 #41

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

diff --git a/sfm.c b/sfm.c @@ -337,7 +337,7 @@ print_row(Pane *pane, size_t entpos, Cpair col) free(rez_pth); } - printf_tb(x, y, col, "%*.*s", ~hwidth, hwidth, full_str); + printf_tb(x, y, col, "%*.*s", ~hwidth, strnlen(full_str, MAX_P), full_str); } static void