diff options
| author | verdant <im@verdant.ee> | 2026-08-05 21:10:37 +0800 |
|---|---|---|
| committer | verdant <im@verdant.ee> | 2026-08-05 21:10:37 +0800 |
| commit | cde363621f08a35803ef804f23c44ac27ddacf03 (patch) | |
| tree | 0748fdbb2e27afde05c5e64e3bbe6a1fc610f456 /src | |
| parent | 99e9be91869be143ad183b2d9b788f99233014e0 (diff) | |
| download | sf-cde363621f08a35803ef804f23c44ac27ddacf03.tar.gz sf-cde363621f08a35803ef804f23c44ac27ddacf03.zip | |
Modify function call
Diffstat (limited to 'src')
| -rw-r--r-- | src/fm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |
