[message] Fix start/end table GPOS message

Fix broken format from the previous change.
This commit is contained in:
Khaled Hosny committed 2026-03-19 16:07:30 +02:00
1 parent 5ad3909af4
commit 09b79d14a0
1 file changed
+4 -4
+4 -4
View File
@@ -2072,7 +2072,7 @@ inline void hb_ot_map_t::apply (const Proxy &proxy,
void hb_ot_map_t::substitute (const hb_ot_shape_plan_t *plan, hb_font_t *font, hb_buffer_t *buffer) const
{
GSUBProxy proxy (font->face);
char tag[5];
char tag[5] = {0};
hb_tag_to_string (chosen_script[0], tag);
if (buffer->messaging () &&
!buffer->message (font, "start table GSUB script tag '%s'", tag)) return;
@@ -2084,13 +2084,13 @@ void hb_ot_map_t::substitute (const hb_ot_shape_plan_t *plan, hb_font_t *font, h
void hb_ot_map_t::position (const hb_ot_shape_plan_t *plan, hb_font_t *font, hb_buffer_t *buffer) const
{
GPOSProxy proxy (font->face);
char tag[5];
char tag[5] = {0};
hb_tag_to_string (chosen_script[0], tag);
if (buffer->messaging () &&
!buffer->message (font, "start table GPOS script tag '%c%c%c%c'", tag)) return;
!buffer->message (font, "start table GPOS script tag '%s'", tag)) return;
apply (proxy, plan, font, buffer);
if (buffer->messaging ())
(void) buffer->message (font, "end table GPOS script tag '%c%c%c%c'", tag);
(void) buffer->message (font, "end table GPOS script tag '%s'", tag);
}
void