Skip to content

Commit cbfc7f9

Browse files
committed
Fixed marker replacement for a placeholder at the end of the command
1 parent c3a164c commit cbfc7f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5969,9 +5969,9 @@ static QCString replaceAliasArguments(StringUnorderedSet &aliasesProcessed,
59695969
bool insideMarkerId=false;
59705970
int markerStart=0;
59715971
auto isDigit = [](char c) { return c>='0' && c<='9'; };
5972-
for (i=0;i<l;i++)
5972+
for (i=0;i<=l;i++)
59735973
{
5974-
char c = aliasValue.at(i);
5974+
char c = i<l ? aliasValue.at(i) : '\0';
59755975
if (insideMarkerId && !isDigit(c)) // found end of a markerId
59765976
{
59775977
insideMarkerId = false;

0 commit comments

Comments
 (0)