mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
(string_file_name): use mc_g_string_copy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
8010b08584
commit
a147082c73
@ -455,8 +455,7 @@ string_file_name (file_entry_t * fe, int len)
|
|||||||
{
|
{
|
||||||
(void) len;
|
(void) len;
|
||||||
|
|
||||||
g_string_set_size (string_file_name_buffer, 0);
|
mc_g_string_copy (string_file_name_buffer, fe->fname);
|
||||||
g_string_append_len (string_file_name_buffer, fe->fname->str, fe->fname->len);
|
|
||||||
|
|
||||||
return string_file_name_buffer->str;
|
return string_file_name_buffer->str;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user