aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-08-05 21:10:37 +0800
committerverdant <im@verdant.ee>2026-08-05 21:10:37 +0800
commitcde363621f08a35803ef804f23c44ac27ddacf03 (patch)
tree0748fdbb2e27afde05c5e64e3bbe6a1fc610f456
parent99e9be91869be143ad183b2d9b788f99233014e0 (diff)
downloadsf-cde363621f08a35803ef804f23c44ac27ddacf03.tar.gz
sf-cde363621f08a35803ef804f23c44ac27ddacf03.zip
Modify function call
-rw-r--r--src/fm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fm.c b/src/fm.c
index cb9cbc1..1af1586 100644
--- a/src/fm.c
+++ b/src/fm.c
@@ -537,7 +537,8 @@ new_dir(fm_info *info)
{
const char *cwd = info->cwd;
char buf[PATH_MAX] = {0};
- if (get_input("Directory name: ", buf) != 0) {
+ size_t len = strlen(buf);
+ if (get_input("Directory name: ", buf, len) != 0) {
return -1;
}