summaryrefslogtreecommitdiff
path: root/ext/syck
diff options
context:
space:
mode:
authorwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-01 15:45:54 +0000
committerwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-01 15:45:54 +0000
commit50629ec6db106e2399181bdecb618111ebbf339f (patch)
tree57be49ea71495d6693ae09b32741a77e6e162464 /ext/syck
parentac761cda209ded2ef48bec9fcc54a979bc6caafc (diff)
* ext/syck/syck.c: string buffering bug. decrementing by full
max_size now. [ruby-core:01834] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck')
-rw-r--r--ext/syck/syck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/syck/syck.c b/ext/syck/syck.c
index c9aad7a..8f46e85 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 )
{