mojozork
mojozork copied to clipboard
Similar issue with "text buffer is too small for reading"
I was experimenting with PunyInform, and compiled library_of_horror
as a z3 story file, and I received this error when descending the stairs.
Same thing -- I switched if (inputlen < 3)
to if (inputlen == 0)
which fixed the crash, allowed a longer piece of text to be displayed. Once again, I ran the zork-1.script successfully after making this change without a crash.
Again, not sure if this is the correct fix for the issue (or if the problem is in the generated z3 file since it was not an Infocom generated one), but the text being displayed was not abnormally long (though it does seem to be displayed in a few separate "chunks".)
I attached the z3 for testing purposes (from the PunyInform repository.) library_of_horror.z3.zip