diff --git a/win/Qt/qt_bind.cpp b/win/Qt/qt_bind.cpp index d75e32dc8..34a78cdb1 100644 --- a/win/Qt/qt_bind.cpp +++ b/win/Qt/qt_bind.cpp @@ -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') // and anything beyond is hidden break;