libffado: fix with gcc7
This commit is contained in:
parent
ca13a38bed
commit
5f556a0745
|
@ -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
|
Loading…
Reference in New Issue