cleanup: use g_malloc and auto_gchar in _win_print_wrapped

This commit is contained in:
Michael Vetter
2026-02-26 21:49:40 +01:00
parent ba5614fb0e
commit 4ee35028e5

View File

@@ -1844,7 +1844,7 @@ _win_print_wrapped(WINDOW* win, const char* const message, size_t indent, int pa
{
int starty = getcury(win);
int wordi = 0;
auto_char char* word = malloc(strlen(message) + 1);
auto_gchar gchar* word = g_malloc(strlen(message) + 1);
gchar* curr_ch = g_utf8_offset_to_pointer(message, 0);