Fix error that caused seek format operations to set max file size to '1' or '0'
[asterisk/asterisk.git] / formats / format_vox.c
index bfa0d8e..3f3b1ea 100644 (file)
@@ -90,7 +90,7 @@ static int vox_seek(struct ast_filestream *fs, off_t sample_offset, int whence)
                return -1;
        }
 
-       if ((max = ftello(fs->f) < 0)) {
+       if ((max = ftello(fs->f)) < 0) {
                ast_log(AST_LOG_WARNING, "Unable to determine max position in g719 filestream %p: %s\n", fs, strerror(errno));
                return -1;
        }