summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack.c b/pack.c
index 74637adca4..fcf3a3a2a0 100644
--- a/pack.c
+++ b/pack.c
@@ -870,12 +870,12 @@ pack_pack(VALUE ary, VALUE fmt)
}
else {
t = StringValuePtr(from);
+ rb_obj_taint(from);
}
if (!associates) {
associates = rb_ary_new();
}
rb_ary_push(associates, from);
- rb_obj_taint(from);
rb_str_buf_cat(res, (char*)&t, sizeof(char*));
}
break;