diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-04-10 05:48:43 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-04-10 05:48:43 +0000 |
commit | 620b13d8777086b3b4da0e0a07e93b83ea38b66d (patch) | |
tree | 6dcd08ef584fc777cf34517136d5ce3948840e45 /pack.c | |
parent | 0453f53db62f1321492288d1c904aade9bb0fa3e (diff) | |
download | ruby-620b13d8777086b3b4da0e0a07e93b83ea38b66d.tar.gz ruby-620b13d8777086b3b4da0e0a07e93b83ea38b66d.tar.xz ruby-620b13d8777086b3b4da0e0a07e93b83ea38b66d.zip |
2000-04-10
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r-- | pack.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); } } |