(string_file_name): use mc_g_string_copy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2021-10-21 21:46:19 +03:00
parent 8010b08584
commit a147082c73

View File

@ -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;
} }