From 9dfe5b0e7361653e967e691c391ebd6d8f28fbfe Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 9 Jan 2024 14:37:40 -0500 Subject: [PATCH] MT#55283 use simpler g_string_append_len ... instead of going through the printf detour when the format is known and is a string. Change-Id: Ie06ed15ec64026f227d5f6573ce6737faa4caf39 --- daemon/sdp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index b834a29a2..b7d69818b 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -2951,11 +2951,12 @@ static void append_attr_to_gstring(GString *s, const char * name, const str * va attr = *attr_subst; /* attr name */ - g_string_append_printf(s, "a=" STR_FORMAT, STR_FMT(&attr)); + g_string_append(s, "a="); + g_string_append_len(s, attr.s, attr.len); /* attr value, don't add if substituion presented */ if (value && !attr_subst) - g_string_append_printf(s, STR_FORMAT, STR_FMT(value)); + g_string_append_len(s, value->s, value->len); g_string_append(s, "\r\n"); }