summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 69e2e0d..3218621 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -5969,9 +5969,9 @@ static QCString replaceAliasArguments(StringUnorderedSet &aliasesProcessed,
bool insideMarkerId=false;
int markerStart=0;
auto isDigit = [](char c) { return c>='0' && c<='9'; };
- for (i=0;i<l;i++)
+ for (i=0;i<=l;i++)
{
- char c = aliasValue.at(i);
+ char c = i<l ? aliasValue.at(i) : '\0';
if (insideMarkerId && !isDigit(c)) // found end of a markerId
{
insideMarkerId = false;