diff --git a/packages/fcl-xml/src/xmlread.pp b/packages/fcl-xml/src/xmlread.pp index 77cb75e9c5..1e37960ba9 100644 --- a/packages/fcl-xml/src/xmlread.pp +++ b/packages/fcl-xml/src/xmlread.pp @@ -3227,7 +3227,7 @@ begin { detect duplicates } J := FWorkAtts[I].PrefixLen+1; - if FNsAttHash.Locate(@b.uri, @AttrName^.Key[J], Length(AttrName^.Key) - J) then + if FNsAttHash.Locate(@b.uri, @AttrName^.Key[J], Length(AttrName^.Key) - J+1) then FatalError('Duplicate prefixed attribute'); // convert Attr into namespaced one (by hack for the time being)