From 99f3df15918574735e0288d06972fb08eb07ad20 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Thu, 18 Aug 2005 04:40:45 +0000 Subject: [PATCH] * screen.c (string_file_name): Increased the buffer size to MC_MAXPATHLEN + 1 bytes to avoid filename truncation. --- src/ChangeLog | 5 +++++ src/screen.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 46f5ad29e..fab81ffcc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-08-18 Andrzej Zaborowski + + * screen.c (string_file_name): Increased the buffer size to + MC_MAXPATHLEN + 1 bytes to avoid filename truncation. + 2005-08-18 Roland Illig * view.c (view_move_up): Don't scroll up if it is not necessary. diff --git a/src/screen.c b/src/screen.c index f7d16b466..7160f9a60 100644 --- a/src/screen.c +++ b/src/screen.c @@ -171,7 +171,7 @@ add_permission_string (char *dest, int width, file_entry *fe, int attr, int colo static const char * string_file_name (file_entry *fe, int len) { - static char buffer [BUF_SMALL]; + static char buffer [MC_MAXPATHLEN + 1]; size_t i; for (i = 0; i < sizeof(buffer) - 1; i++) {