Skip to content

Commit

Permalink
ChafaTermInfo: Remember to copy the name as well
Browse files Browse the repository at this point in the history
  • Loading branch information
hpjansson committed Nov 15, 2024
1 parent ae06557 commit 3301cf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chafa/chafa-term-info.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,8 @@ chafa_term_info_copy (const ChafaTermInfo *term_info)
new_term_info->unparsed_str [i] = g_strdup (new_term_info->unparsed_str [i]);
}

new_term_info->name = g_strdup (new_term_info->name);

return new_term_info;
}

Expand Down

0 comments on commit 3301cf1

Please sign in to comment.