mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +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;
|
||||
|
||||
g_string_set_size (string_file_name_buffer, 0);
|
||||
g_string_append_len (string_file_name_buffer, fe->fname->str, fe->fname->len);
|
||||
mc_g_string_copy (string_file_name_buffer, fe->fname);
|
||||
|
||||
return string_file_name_buffer->str;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user