diff --git a/Source/UI/Navigation/NavigationLink.cpp b/Source/UI/Navigation/NavigationLink.cpp index cfc11037b..8ea1645b2 100644 --- a/Source/UI/Navigation/NavigationLink.cpp +++ b/Source/UI/Navigation/NavigationLink.cpp @@ -312,7 +312,7 @@ int DecodeNavigationNumber(std::string value) { int result = 0; char* buffer = new char[size]; strcpy_s(buffer, size, value.c_str()); - const int length = static_cast(value.size()); + const int length = size - 1; for (int index = 0; index < length; ++index) { for (int digit = 0; digit < 62; ++digit) {