diff --git a/mythtv/libs/libmythbase/mythmiscutil.cpp b/mythtv/libs/libmythbase/mythmiscutil.cpp index dc47e1d823a..6086c45497a 100644 --- a/mythtv/libs/libmythbase/mythmiscutil.cpp +++ b/mythtv/libs/libmythbase/mythmiscutil.cpp @@ -454,17 +454,8 @@ QString getResponse(const QString &query, const QString &def) return def; } - char response[80]; - cin.clear(); - cin.getline(response, 80); - if (!cin.good()) - { - cout << endl; - LOG(VB_GENERAL, LOG_ERR, "Read from stdin failed"); - return NULL; - } - - QString qresponse = response; + QTextStream stream(stdin); + QString qresponse = stream.readLine(); if (qresponse.isEmpty()) qresponse = def; @@ -943,10 +934,6 @@ void wrapList(QStringList &list, int width) { int i; - // if this is triggered, something has gone seriously wrong - // the result won't really be usable, but at least it won't crash - width = max(width, 5); - for(i = 0; i < list.size(); i++) { QString string = list.at(i);