diff options
| author | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-01 15:45:54 +0000 |
|---|---|---|
| committer | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-01 15:45:54 +0000 |
| commit | 2dfb52fce65c14d01d23dbdb93e57693a17972ce (patch) | |
| tree | 57be49ea71495d6693ae09b32741a77e6e162464 /ext/syck | |
| parent | 91b5d846f89c8985c527e66876fe68ee2ac80f08 (diff) | |
| download | ruby-2dfb52fce65c14d01d23dbdb93e57693a17972ce.tar.gz ruby-2dfb52fce65c14d01d23dbdb93e57693a17972ce.tar.xz ruby-2dfb52fce65c14d01d23dbdb93e57693a17972ce.zip | |
* ext/syck/syck.c: string buffering bug. decrementing by full
max_size now. [ruby-core:01834]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck')
| -rw-r--r-- | ext/syck/syck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/syck/syck.c b/ext/syck/syck.c index c9aad7a8a..8f46e85ae 100644 --- a/ext/syck/syck.c +++ b/ext/syck/syck.c @@ -72,7 +72,7 @@ syck_io_str_read( char *buf, SyckIoStr *str, long max_size, long skip ) { max_size -= skip; if ( max_size <= 0 ) max_size = 0; - else str->ptr += max_size - 1; + else str->ptr += max_size; if ( str->ptr > str->end ) { |
