summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--proto-libevdev/ftnoir_protocol_libevdev.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto-libevdev/ftnoir_protocol_libevdev.cpp b/proto-libevdev/ftnoir_protocol_libevdev.cpp
index 00f5fd07..27b73f2d 100644
--- a/proto-libevdev/ftnoir_protocol_libevdev.cpp
+++ b/proto-libevdev/ftnoir_protocol_libevdev.cpp
@@ -121,7 +121,7 @@ module_status evdev::initialize()
if (error_code)
{
char buf[128] {};
- (void)strerror_r(errno, buf, sizeof(buf));
+ (void)strerror_r(error_code, buf, sizeof(buf));
return error(QStringLiteral("libevdev call '%1' failed with error '%2' (%3)")
.arg(!error_expr ? "<NULL>" : error_expr, buf).arg(error_code));
}