From a0356cf4aeacd9f3dde1d0b4a0e771fd6227b725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= Date: Fri, 15 Nov 2024 16:57:02 +0100 Subject: [PATCH] bluez5: backend-native: Fix parsing of +CLCC event for PTS PTS 8.7.3 Build 6 send +CLCC events without space after '+CLCC:' Found with PTS test HFP/HF/ICA/BV-04-C --- spa/plugins/bluez5/backend-native.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/bluez5/backend-native.c b/spa/plugins/bluez5/backend-native.c index 478f5d3da..5819ba1bd 100644 --- a/spa/plugins/bluez5/backend-native.c +++ b/spa/plugins/bluez5/backend-native.c @@ -2006,7 +2006,7 @@ static bool rfcomm_hfp_hf(struct rfcomm *rfcomm, char* token) if (call == NULL) spa_log_warn(backend->log, "failed to create waiting call"); } - } else if (spa_strstartswith(token, "+CLCC: ")) { + } else if (spa_strstartswith(token, "+CLCC:")) { struct spa_bt_telephony_call *call; size_t pos; char *token_end; @@ -2017,7 +2017,7 @@ static bool rfcomm_hfp_hf(struct rfcomm *rfcomm, char* token) token[strcspn(token, "\r")] = 0; token[strcspn(token, "\n")] = 0; token_end = token + strlen(token); - token += strlen("+CLCC: "); + token += strlen("+CLCC:"); if (token < token_end) { pos = strcspn(token, ",");