1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* include/ruby/ruby.h (struct RString): size of ary must be

RSTRING_EMBED_LEN_MAX + 1.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2008-07-31 04:19:01 +00:00
parent 1c30bc4cca
commit 84fd4181fc
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Jul 31 13:18:30 2008 Yusuke Endoh <mame@tsg.ne.jp>
* include/ruby/ruby.h (struct RString): size of ary must be
RSTRING_EMBED_LEN_MAX + 1.
Thu Jul 31 12:23:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* pack.c (pack_unpack): upper half of hexdigits has never been used.

View file

@ -515,7 +515,7 @@ struct RString {
VALUE shared;
} aux;
} heap;
char ary[RSTRING_EMBED_LEN_MAX];
char ary[RSTRING_EMBED_LEN_MAX + 1];
} as;
};
#define RSTRING_NOEMBED FL_USER1