From 0ccd69e530ed18ac19a4484c76bdbef94d1ab2b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Sat, 18 Dec 2021 18:48:20 +0000 Subject: Replace g_strdup_printf() with ws_strdup_printf() Use macros from inttypes.h. --- epan/dissectors/packet-btmesh.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'epan/dissectors/packet-btmesh.c') diff --git a/epan/dissectors/packet-btmesh.c b/epan/dissectors/packet-btmesh.c index 4eac4d0206..f614e290b6 100644 --- a/epan/dissectors/packet-btmesh.c +++ b/epan/dissectors/packet-btmesh.c @@ -8207,7 +8207,7 @@ compute_ascii_key(guchar **ascii_key, const gchar *key, const gchar *key_name, g { g_free(*ascii_key); *ascii_key = NULL; - *err = g_strdup_printf("Key %s begins with an invalid hex char (%c)", key, key[i]); + *err = ws_strdup_printf("Key %s begins with an invalid hex char (%c)", key, key[i]); return -1; /* not a valid hex digit */ } (*ascii_key)[j] = (guchar)hex_digit; @@ -8230,7 +8230,7 @@ compute_ascii_key(guchar **ascii_key, const gchar *key, const gchar *key_name, g { g_free(*ascii_key); *ascii_key = NULL; - *err = g_strdup_printf("%s %s has an invalid hex char (%c)", key_name, key, key[i-1]); + *err = ws_strdup_printf("%s %s has an invalid hex char (%c)", key_name, key, key[i-1]); return -1; /* not a valid hex digit */ } key_byte = ((guchar)hex_digit) << 4; @@ -8240,7 +8240,7 @@ compute_ascii_key(guchar **ascii_key, const gchar *key, const gchar *key_name, g { g_free(*ascii_key); *ascii_key = NULL; - *err = g_strdup_printf("%s %s has an invalid hex char (%c)", key_name, key, key[i-1]); + *err = ws_strdup_printf("%s %s has an invalid hex char (%c)", key_name, key, key[i-1]); return -1; /* not a valid hex digit */ } key_byte |= (guchar)hex_digit; @@ -8250,7 +8250,7 @@ compute_ascii_key(guchar **ascii_key, const gchar *key, const gchar *key_name, g (*ascii_key)[j] = '\0'; } else { *ascii_key = NULL; - *err = g_strdup_printf("%s %s has to start with '0x' or '0X', and represent exactly %d octets", key_name, key, expected_octets); + *err = ws_strdup_printf("%s %s has to start with '0x' or '0X', and represent exactly %d octets", key_name, key, expected_octets); return -1; } } -- cgit v1.2.3