22 lines
979 B
Diff
22 lines
979 B
Diff
--- 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
|