diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-05 08:34:09 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-05 08:34:09 +0900 |
| commit | b7cc7fffe7030834c160ce2cb78c398ba23ac145 (patch) | |
| tree | 4e66123607da386456a2d7c1d297f134b3d28e97 /src/load.c | |
| parent | 531124f0573e939d07d23ea0927483e0fb3954eb (diff) | |
| download | mruby-b7cc7fffe7030834c160ce2cb78c398ba23ac145.tar.gz mruby-b7cc7fffe7030834c160ce2cb78c398ba23ac145.zip | |
symbol can contain non printable characters
Diffstat (limited to 'src/load.c')
| -rw-r--r-- | src/load.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/load.c b/src/load.c index c0684f1aa..1b607909c 100644 --- a/src/load.c +++ b/src/load.c @@ -477,7 +477,7 @@ read_rite_irep_record(mrb_state *mrb, unsigned char *src, mrb_irep *irep, uint32 memcpy(buf, src, snl); //symbol name src += snl; buf[snl] = '\0'; - irep->syms[i] = mrb_intern(mrb, buf); + irep->syms[i] = mrb_intern2(mrb, buf, snl); } } crc = calc_crc_16_ccitt((unsigned char*)pStart, src - pStart); //Calculate CRC |
