mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
spa: bluez: backend-native: fix DTMF string leak
This commit is contained in:
parent
33a5c4ba10
commit
66014e5828
1 changed files with 1 additions and 2 deletions
|
|
@ -1163,10 +1163,9 @@ next_indicator:
|
|||
return true;
|
||||
}
|
||||
} else if (spa_strstartswith(buf, "AT+VTS=")) {
|
||||
char *dtmf;
|
||||
char dtmf[2];
|
||||
enum cmee_error error;
|
||||
|
||||
dtmf = calloc(1, 2);
|
||||
if (sscanf(buf, "AT+VTS=%1s", dtmf) != 1) {
|
||||
spa_log_debug(backend->log, "Failed to parse AT+VTS: \"%s\"", buf);
|
||||
rfcomm_send_error(rfcomm, CMEE_AG_FAILURE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue