commit 580c788b9d5674135b0ad6973fe21869b6cfa2c9
Author: Nicolas Robin <13021796+nicolas-robin@users.noreply.github.com>
AuthorDate: Sun May 10 14:48:33 2020 +0200
Commit: Nicolas Robin <13021796+nicolas-robin@users.noreply.github.com>
CommitDate: Sun May 10 14:48:33 2020 +0200
opl_linux: fix number of port requested by ioperm()
---
opl/opl_linux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/opl/opl_linux.c b/opl/opl_linux.c
index 19e4c3e3..03160fa1 100644
--- a/opl/opl_linux.c
+++ b/opl/opl_linux.c
@@ -35,7 +35,7 @@ static int OPL_Linux_Init(unsigned int port_base)
{
// 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));