mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* missing/vsnprintf.c (struct __sbuf, FILE): use size_t.
* sprintf.c (ruby__sfvwrite): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2bd1599caf
commit
6ccce7e3f5
3 changed files with 12 additions and 5 deletions
|
@ -1043,7 +1043,7 @@ ruby__sfvwrite(register rb_printf_buffer *fp, register struct __suio *uio)
|
|||
VALUE result = (VALUE)fp->_bf._base;
|
||||
char *buf = (char*)fp->_p;
|
||||
size_t len, n;
|
||||
int blen = buf - RSTRING_PTR(result), bsiz = fp->_w;
|
||||
size_t blen = buf - RSTRING_PTR(result), bsiz = fp->_w;
|
||||
|
||||
if (RBASIC(result)->klass) {
|
||||
rb_raise(rb_eRuntimeError, "rb_vsprintf reentered");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue