From eb809af235f29275f9a1e34c16d781dfdcf0156e Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 10 Jul 2008 13:31:23 +0000 Subject: [PATCH] fix small bug --- lib/dvb/frontend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.30.2