SIGN IN SIGN UP

Don't mess with the original in String::substring

Before, substring would (temporarily) add a \0 in the original string at
the end of the substring, so the substring could be copied into a new
String object. However, now that the String::copy() method can work with
non-nul-terminated strings (by passing an explicit length), this trick
is not needed and we can just call the copy method instead.
M
Matthijs Kooijman committed
dd236bfd2c62ed083aaa1b1229d71e85fd92f7a9
Parent: 8431488