mirror of https://github.com/MidnightCommander/mc
* screen.c (string_file_name): Increased the buffer size to
MC_MAXPATHLEN + 1 bytes to avoid filename truncation.
This commit is contained in:
parent
541c12241f
commit
99f3df1591
|
@ -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.
|
||||
|
|
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue