summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack.c b/pack.c
index f7a9f414ec..8e343c8e22 100644
--- a/pack.c
+++ b/pack.c
@@ -1636,7 +1636,7 @@ pack_unpack(str, fmt)
if (p == pend) {
rb_raise(rb_eArgError, "non associated pointer");
}
- tmp = rb_str_new(t, len);
+ tmp = rb_tainted_str_new(t, len);
}
else {
tmp = rb_str_new(0, 0);