Skip to content

Commit

Permalink
Merge pull request #3131 from ihsinme/patch-1
Browse files Browse the repository at this point in the history
Fix initialization of Offset by c-string without explicit ending
  • Loading branch information
mgreter authored Oct 21, 2020
2 parents a4c1115 + daf6f47 commit bea4d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/position.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace Sass {
{
Offset offset(0, 0);
if (end == 0) {
end += strlen(beg);
end = beg + strlen(beg);
}
offset.add(beg, end);
return offset;
Expand Down

0 comments on commit bea4d60

Please sign in to comment.