diff --git a/tdesudo/tdesudo.cpp b/tdesudo/tdesudo.cpp index c255d0f..83158ab 100644 --- a/tdesudo/tdesudo.cpp +++ b/tdesudo/tdesudo.cpp @@ -205,7 +205,7 @@ TdeSudo::TdeSudo(TQWidget *parent, const char *name,const TQString& icon, const chmod(m_tmpname.ascii(),0644); QCStringList output; - while (fgets(buf, 1024, f) > 0) + while (fgets(buf, 1024, f) != NULL) output += buf; if (pclose(f) < 0) { kdError() << k_lineinfo << "Could not run xauth.\n";