libffado: fix with gcc7

This commit is contained in:
Enno Boland 2018-03-20 11:04:55 +01:00
parent ca13a38bed
commit 5f556a0745
No known key found for this signature in database
GPG Key ID: D09964719BDE9971
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
--- src/libieee1394/configrom.cpp.orig 2018-03-20 10:21:02.605121213 +0100
+++ src/libieee1394/configrom.cpp 2018-03-20 10:21:10.306106579 +0100
@@ -195,7 +195,7 @@ ConfigRom::initialize()
memcpy( buf,
( void* )CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA( m_modelNameKv ),
len );
- while ((buf + len - 1) == '\0') {
+ while (buf[len - 1] == '\0') {
len--;
}
// \todo XXX for edirol fa-66 it seems somehow broken. see above
--- src/libieee1394/configrom.cpp.orig 2018-03-20 10:22:56.490904788 +0100
+++ src/libieee1394/configrom.cpp 2018-03-20 10:23:06.081886560 +0100
@@ -176,7 +176,7 @@ ConfigRom::initialize()
( void* )CSR1212_TEXTUAL_DESCRIPTOR_LEAF_DATA( m_vendorNameKv ),
len );
- while ((buf + len - 1) == '\0') {
+ while (buf[len - 1] == '\0') {
len--;
}
// \todo XXX seems a bit strage to do this but the nodemgr.c code does