ComputerScienceHouse / bingehack

A fork of nethack with semi-multiplayer features and other customizations. (An in-heavy-development fork version is at https://github.com/computersciencehouse/bingehack4 )
http://nethack.csh.rit.edu
23 stars 4 forks source link

Multi-line messages could infinite loop #115

Closed eatnumber1 closed 12 years ago

eatnumber1 commented 12 years ago

When a message is exactly (or possibly a multiple of) the width of your message window, the message is displayed infinitely, creating an unplayable game.

This is caused in curses_str_remainder win/curses/cursmisc.c:369 where a logic error causes the function to return the entire string.