You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
414 B
14 lines
414 B
diff --git a/src/descriptor.cpp b/src/descriptor.cpp
|
|
index 8c914a9..beaf4d7 100644
|
|
--- a/src/descriptor.cpp
|
|
+++ b/src/descriptor.cpp
|
|
@@ -17,6 +17,9 @@ Descriptor::Descriptor(const uint8_t * const buffer)
|
|
descriptorTag = buffer[0];
|
|
descriptorLength = buffer[1];
|
|
|
|
+ if (!descriptorLength)
|
|
+ descriptorLength = 1;
|
|
+
|
|
dataBytes.resize(descriptorLength);
|
|
memcpy(&dataBytes[0], &buffer[2], descriptorLength);
|
|
|
|
|