diff --git a/src/App/MappedName.h b/src/App/MappedName.h index 355533e1bd..93c79682b6 100644 --- a/src/App/MappedName.h +++ b/src/App/MappedName.h @@ -332,7 +332,7 @@ public: MappedName& operator+=(const char* other) { if (other && (other[0] != 0)) { - this->postfix.append(other, -1); + this->postfix.append(other, static_cast(qstrlen(other))); } return *this; }