Modified: MacRuby/branches/icu/string.c (3712 => 3713)
--- MacRuby/branches/icu/string.c 2010-03-07 02:44:47 UTC (rev 3712)
+++ MacRuby/branches/icu/string.c 2010-03-08 22:33:58 UTC (rev 3713)
@@ -1956,9 +1956,6 @@
if (pos >= len) {
pos = len - 1;
}
- else if (pos == 0) {
- return Qnil;
- }
}
else {
pos = len - 1;
@@ -2003,7 +2000,7 @@
{
rb_str_t *newstr = str_dup(RSTR(self));
str_concat_string(newstr, str_need_string(other));
- if (OBJ_TAINTED(self)) {
+ if (OBJ_TAINTED(self) || OBJ_TAINTED(other)) {
OBJ_TAINT(newstr);
}
return (VALUE)newstr;