diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-06-12 14:43:34 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-06-12 16:18:43 +0900 |
| commit | f764467c195b76b60660978130cc9c5167d7375a (patch) | |
| tree | 3820755c8b249789db2c2f1ae634c44171476167 /mrbgems/mruby-pack | |
| parent | 56593764c8408b503c481109b746e417b289f721 (diff) | |
| download | mruby-f764467c195b76b60660978130cc9c5167d7375a.tar.gz mruby-f764467c195b76b60660978130cc9c5167d7375a.zip | |
pack.c: wrong position after count read.
Diffstat (limited to 'mrbgems/mruby-pack')
| -rw-r--r-- | mrbgems/mruby-pack/src/pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-pack/src/pack.c b/mrbgems/mruby-pack/src/pack.c index f0c5d8f1e..a061df50d 100644 --- a/mrbgems/mruby-pack/src/pack.c +++ b/mrbgems/mruby-pack/src/pack.c @@ -1242,7 +1242,7 @@ alias: mrb_raise(mrb, E_RUNTIME_ERROR, "too big template length"); } count = (int)n; - tmpl->idx += e - tptr; + tmpl->idx = e - tptr; continue; } else if (ch == '*') { count = -1; |
