numberzap accepts a maximum of 4 digits
[enigma2.git] / lib / dvb / volume.cpp
index 0988569..78b9bde 100644 (file)
@@ -93,7 +93,7 @@ void eDVBVolumecontrol::setVolume(int left, int right)
                
        //HACK?
        FILE *f;
-       if((f = fopen("/proc/stb/avs/0/volume", "wb")) < 0) {
+       if((f = fopen("/proc/stb/avs/0/volume", "wb")) == NULL) {
                printf("cannot open /proc/stb/avs/0/volume\n");
                return;
        }