shithub: choc

Download patch

ref: 580c788b9d5674135b0ad6973fe21869b6cfa2c9
parent: 670212f2ee7c468790c3e3b351b45135c274ef9c
author: Nicolas Robin <13021796+nicolas-robin@users.noreply.github.com>
date: Sun May 10 10:48:33 EDT 2020

opl_linux: fix number of port requested by ioperm()

--- a/opl/opl_linux.c
+++ b/opl/opl_linux.c
@@ -35,7 +35,7 @@
 {
     // Try to get permissions:
 
-    if (ioperm(port_base, 2, 1) < 0)
+    if (ioperm(port_base, 3, 1) < 0)
     {
         fprintf(stderr, "Failed to get I/O port permissions for 0x%x: %s\n",
                         port_base, strerror(errno));