Skip to content

Commit

Permalink
Bug 1801248 - Fix up pointer arithmetic. r=gfx-reviewers,lsalzman
Browse files Browse the repository at this point in the history
  • Loading branch information
jfkthame committed Nov 21, 2022
1 parent 905441d commit 5c7ab9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gfx/thebes/gfxTextRun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ bool gfxTextRun::GetAdjustedSpacingArray(
memset(aSpacing->Elements(), 0, sizeof(gfxFont::Spacing) * spacingOffset);
GetAdjustedSpacing(this, aSpacingRange, aProvider,
aSpacing->Elements() + spacingOffset);
memset(aSpacing->Elements() + aSpacingRange.end - aRange.start, 0,
memset(aSpacing->Elements() + spacingOffset + aSpacingRange.Length(), 0,
sizeof(gfxFont::Spacing) * (aRange.end - aSpacingRange.end));
return true;
}
Expand Down

0 comments on commit 5c7ab9c

Please sign in to comment.