fix small bug
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 10 Jul 2008 13:31:23 +0000 (13:31 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 10 Jul 2008 13:31:23 +0000 (13:31 +0000)
lib/dvb/frontend.cpp

index e1af3098d6c47944a7c41849cccab70f0fee4939..df98dc24181901f06d7cb4278b176dff82a56a28 100644 (file)
@@ -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");