An error occurred while fetching folder content.
files: allocate enough space for the prompt when finding a lock file
Benno Schulenberg authored
Instead of allocating a fixed amount of 128 bytes, which will overflow
and segfault, adjust the allocation to the length of the file name, and
if necessary trim the file name to make the prompt fit on the screen.

This fixes https://savannah.gnu.org/bugs/?47511

.
Reported-by: default avatarAapo Rantalainen <aapo.rantalainen@gmail.com>
Signed-off-by: default avatarBenno Schulenberg <bensberg@justemail.net>
fc7eb69b
Name Last commit Last update