From: Andreas Monzner Date: Thu, 10 Jul 2008 13:31:23 +0000 (+0000) Subject: fix small bug X-Git-Tag: 2.6.0~1059 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/eb809af235f29275f9a1e34c16d781dfdcf0156e fix small bug --- diff --git a/lib/dvb/frontend.cpp b/lib/dvb/frontend.cpp index e1af3098..df98dc24 100644 --- a/lib/dvb/frontend.cpp +++ b/lib/dvb/frontend.cpp @@ -1541,7 +1541,7 @@ void eDVBFrontend::tuneLoop() // called by m_tuneTimer if (f) // new interface exist? { bool slimiting = m_sec_sequence.current()->mode == eSecCommand::modeStatic; - if (fprintf(f, "%s", slimiting ? "on" : "off") != 1) + if (fprintf(f, "%s", slimiting ? "on" : "off") <= 0) eDebug("write %s failed!! (%m)", proc_name); else eDebug("[SEC] set %s current limiting", slimiting ? "static" : "dynamic");