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 000c6e5ca9..58aa5d4105 100644
--- a/pack.c
+++ b/pack.c
@@ -550,7 +550,7 @@ pack_pack(ary, fmt)
char c = byte & 0xff;
rb_str_buf_cat(res, &c, 1);
}
- len = 1;
+ len = j;
goto grow;
}
break;