From e0c9f87d78d65843f610c2dccb04f3453002f2f9 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Sun, 13 Nov 2022 15:13:33 +0300 Subject: [PATCH] bluez5: backend-native: prevent string overflow Fixes -Wfortify-source when building --- spa/plugins/bluez5/backend-native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/bluez5/backend-native.c b/spa/plugins/bluez5/backend-native.c index 848bcc464..e099f5799 100644 --- a/spa/plugins/bluez5/backend-native.c +++ b/spa/plugins/bluez5/backend-native.c @@ -1111,7 +1111,7 @@ next_indicator: return true; } } else if (spa_strstartswith(buf, "ATD")) { - char number[30]; + char number[31]; enum cmee_error error; if (sscanf(buf, "ATD%30s;", number) != 1) {