azbycxdw909 / garglk

Automatically exported from code.google.com/p/garglk
Other
0 stars 0 forks source link

gli_get_buffer and gli_put_buffer broken for memory streams #101

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Using /autosave in nitfol will segfault. The reason is a bug in
gli_put_buffer and gli_get_buffer: stream->bufptr is never updated, so
subsequent calls to put/get will overwrite previously written data.
Consequently, stream->bufeof is wrong, too.

The attached patch fixes it.

Original issue reported on code.google.com by leftda...@gmail.com on 30 Mar 2010 at 1:17

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the report and the patch! I'll get this applied right away.

Can you add a note with your name so I can list you in the project credits?  
Thanks!

Original comment by bcressey@gmail.com on 30 Mar 2010 at 2:13

GoogleCodeExporter commented 8 years ago
I'm Jörg Walter <info@syntax-k.de>

Original comment by leftda...@gmail.com on 30 Mar 2010 at 5:14

GoogleCodeExporter commented 8 years ago

Original comment by bcressey@gmail.com on 31 Mar 2010 at 8:33