Remove null characters from Qt y/n prompt

Fixes issue #566.
This commit is contained in:
Ray Chason
2022-10-25 15:20:19 -07:00
committed by PatR
parent 1ccad11fab
commit ec205c5a7b
+1 -1
View File
@@ -703,7 +703,7 @@ char NetHackQtBind::qt_yn_function(const char *question_,
int result = -1;
if (choices) {
QString choicebuf((int) strlen(choices) + 1, QChar('\0'));
QString choicebuf;
for (const char *p = choices; *p; ++p) {
if (*p == '\033') // <esc> and anything beyond is hidden
break;