* screen.c (string_file_name): Increased the buffer size to

MC_MAXPATHLEN + 1 bytes to avoid filename truncation.
This commit is contained in:
Roland Illig 2005-08-18 04:40:45 +00:00
parent 541c12241f
commit 99f3df1591
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-08-18 Andrzej Zaborowski <balrogg@gmail.com>
* screen.c (string_file_name): Increased the buffer size to
MC_MAXPATHLEN + 1 bytes to avoid filename truncation.
2005-08-18 Roland Illig <roland.illig@gmx.de>
* view.c (view_move_up): Don't scroll up if it is not necessary.

View File

@ -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++) {