* 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

@ -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