bluez: fix gcc-14 build

this patch should be reviewed against potentially newer verion of this patch
- https://coral.googlesource.com/bluez-imx/+log/refs/heads/release-chef
- https://github.com/balena-os/balena-coral/tree/master/layers/meta-balena-coral/recipes-connectivity/bluez5/patches
This commit is contained in:
Rudi Heitbaum 2024-05-01 13:55:07 +00:00
parent 99f934c5c8
commit d0d70b3f44

View File

@ -953,7 +953,7 @@ index 000000000..9a7f222c4
+ return ret;
+ }
+
+ while (getline(&line, &bytes_read, pfile) > 0 ) {
+ while (getline(&line, (size_t *)&bytes_read, pfile) > 0 ) {
+ if (line[0] != '#' && line[0] != '\n') {
+ pch = memchr(line, '=', strlen(line));
+ if (pch != NULL) {