diff options
-rw-r--r-- | src/library/scala/io/UTF8Codec.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/io/UTF8Codec.scala b/src/library/scala/io/UTF8Codec.scala index d07354b117..b0e0ee0077 100644 --- a/src/library/scala/io/UTF8Codec.scala +++ b/src/library/scala/io/UTF8Codec.scala @@ -113,7 +113,7 @@ object UTF8Codec { def decode(src: Array[Byte], from: Int, len: Int): String = { val cs = new Array[Char](len) - new String(cs, 0, decode(src, 0, cs, 0, len)) + new String(cs, 0, decode(src, from, cs, 0, len)) } } |