diff options
| -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; } |
