Hi,
In message "[ruby-talk:01999] slice! ate my machine!"
on 00/03/17, Dave Thomas <Dave / thomases.com> writes:
|Don't try this one unless you have a spare shell window open and are
|quick at typing 'kill -9 nnnn'!
Sorry, here's the patch.
--- string.c.sav Wed Feb 2 08:51:02 2000
@@ -837,3 +893,3 @@
- if (len != RSTRING(val)->len) {
+ if (RSTRING(val)->len != len && RSTRING(val)->len > beg + len) {
memmove(RSTRING(str)->ptr + beg + RSTRING(val)->len,