From 50629ec6db106e2399181bdecb618111ebbf339f Mon Sep 17 00:00:00 2001 From: why Date: Mon, 1 Dec 2003 15:45:54 +0000 Subject: * 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 --- ext/syck/syck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/syck/syck.c b/ext/syck/syck.c index c9aad7a8a5..8f46e85ae0 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 ) { -- cgit v1.2.3