Skip to content

Commit bea4d60

Browse files
authored
Merge pull request #3131 from ihsinme/patch-1
Fix initialization of Offset by c-string without explicit ending
2 parents a4c1115 + daf6f47 commit bea4d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/position.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace Sass {
3333
{
3434
Offset offset(0, 0);
3535
if (end == 0) {
36-
end += strlen(beg);
36+
end = beg + strlen(beg);
3737
}
3838
offset.add(beg, end);
3939
return offset;

0 commit comments

Comments
 (0)