summaryrefslogtreecommitdiff
path: root/src/lib/json/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/json/parse.go')
-rw-r--r--src/lib/json/parse.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/json/parse.go b/src/lib/json/parse.go
index 1069e1183..e33b9dbc1 100644
--- a/src/lib/json/parse.go
+++ b/src/lib/json/parse.go
@@ -114,7 +114,7 @@ func Unquote(s string) (t string, ok bool) {
w++;
// Coerce to well-formed UTF-8.
default:
- rune, size := utf8.DecodeRuneInString(s, r);
+ rune, size := utf8.DecodeRuneInString(s[r:len(s)]);
r += size;
w += utf8.EncodeRune(rune, b[w:len(b)]);
}