Skip to content

Commit a98fd65

Browse files
committed
TRestRun::ReplaceMetadataMembers. Yet fixing another bug
1 parent 3d6c995 commit a98fd65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/framework/core/src/TRestRun.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ string TRestRun::ReplaceMetadataMembers(const string instr) {
14771477
string expressionToReplace = outstring.substr(startPosition + 1, endPosition - startPosition - 1);
14781478
string value = ReplaceMetadataMember(expressionToReplace);
14791479

1480-
outstring.replace(startPosition, endPosition - startPosition + 2, value);
1480+
outstring.replace(startPosition, endPosition - startPosition + 1, value);
14811481
endPosition = 0;
14821482
}
14831483

0 commit comments

Comments
 (0)