diff options
author | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-17 20:53:39 +0000 |
---|---|---|
committer | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-17 20:53:39 +0000 |
commit | 71a8bebf5a130735b6455426b25a817fb31463c8 (patch) | |
tree | 12451184c932388ec7fa18a76b855054027589e2 /ext/syck/syck.c | |
parent | 23f6b5bdc450abc5ce3a3dc7540a668f5d166dea (diff) | |
download | ruby-71a8bebf5a130735b6455426b25a817fb31463c8.tar.gz |
* ext/syck/rubyext.c: YAML::Syck::compile method.
* ext/syck/syck.c: Buffer edge bug.
* ext/syck/yaml2byte.c: YAML to bytecode converter.
* ext/syck/bytecode.c: Bytecode parser fixes to empty collections
and empty strings.
* ext/syck/token.c: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/syck.c')
-rw-r--r-- | ext/syck/syck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/syck/syck.c b/ext/syck/syck.c index 9f2f900383..8d319379a3 100644 --- a/ext/syck/syck.c +++ b/ext/syck/syck.c @@ -9,8 +9,8 @@ #include <stdio.h> #include <string.h> -#include "ruby.h" #include "syck.h" +#include "ruby.h" void syck_parser_pop_level( SyckParser * ); @@ -88,7 +88,7 @@ syck_io_str_read( char *buf, SyckIoStr *str, long max_size, long skip ) } if ( beg < str->ptr ) { - len = str->ptr - beg; + len = ( str->ptr - beg ) + 1; S_MEMCPY( buf + skip, beg, char, len ); } len += skip; |