Skip to content

Commit

Permalink
copy tainted status
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Jan 1, 2012
1 parent 89b9f6e commit ac1cf0f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pack.c
Expand Up @@ -1243,7 +1243,10 @@ hex2num(char c)
static VALUE
infected_str_new(const char *ptr, long len, VALUE str)
{
return rb_str_new(ptr, len);
VALUE s = rb_str_new(ptr, len);

OBJ_INFECT(s, str);
return s;
}

/*
Expand Down

0 comments on commit ac1cf0f

Please sign in to comment.