From: matz@... (Yukihiro Matsumoto) Date: 2000-03-19T01:07:32+09:00 Subject: [ruby-talk:02006] Re: slice! ate my machine! Hi, In message "[ruby-talk:01999] slice! ate my machine!" on 00/03/17, Dave Thomas 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,