From daf6f474fdc6a90fc0c59923a4dd4c774705772e Mon Sep 17 00:00:00 2001 From: ihsinme <61293369+ihsinme@users.noreply.github.com> Date: Mon, 19 Oct 2020 17:13:28 +0300 Subject: [PATCH] fix error of working with the pointer. --- src/position.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/position.cpp b/src/position.cpp index 1669e9d00d..990185332a 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -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;