From 620b13d8777086b3b4da0e0a07e93b83ea38b66d Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 10 Apr 2000 05:48:43 +0000 Subject: 2000-04-10 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- pack.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pack.c') diff --git a/pack.c b/pack.c index bac34154b..24032b872 100644 --- a/pack.c +++ b/pack.c @@ -1565,8 +1565,9 @@ pack_unpack(str, fmt) VALUE str = rb_str_new(0, 0); memcpy(&t, s, sizeof(char *)); s += sizeof(char *); - if (t) - rb_str_cat(str, t, strlen(t)); + if (t) { + rb_str_cat2(str, t); + } rb_ary_push(ary, str); } } -- cgit