Bugs: Browse | Submit New | Admin

[#28415] Bug in IO::Buffer#read_from. Incorrect size of buffer after read in. (iobuffer-0.1.3.gem)

Date:
2010-07-22 14:21
Priority:
3
Submitted By:
Philippe Lucas (philo)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Bug in IO::Buffer#read_from. Incorrect size of buffer after read in. (iobuffer-0.1.3.gem)

Detailed description
size of the buffer is set with : buf->size += nbytes
and should be set with : buf->size += bytes_read

Thanks for this gem.

Philippe Lucas.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2010-07-22 14:29
Sender: Philippe Lucas

Sorry, I have forgotten :
buf -> tail -> end += byte_read 
in place of

buf -> tail -> end += nbytes

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item