summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/MuxElements.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MuxElements.cpp b/src/MuxElements.cpp
index e8871d1..ac6ee32 100644
--- a/src/MuxElements.cpp
+++ b/src/MuxElements.cpp
@@ -104,10 +104,10 @@ int DabLabel::setShortLabel(const std::string& slabel)
/* Iterate over the label and set the bits in the flag
* according to the characters in the slabel
*/
- for (int i = 0; i < 32; ++i) {
+ for (int i = 0; i < 16; ++i) {
if (*slab == this->m_text[i]) {
flag |= 0x8000 >> i;
- if (*(++slab) == 0) {
+ if (*(++slab) == '\0') {
break;
}
}