summaryrefslogtreecommitdiffhomepage
path: root/proto-libevdev/ftnoir_protocol_libevdev.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-05-05 01:22:04 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-05-05 01:22:04 +0200
commit5a76a77a9651dd52560578bb509c917abba1d83c (patch)
treec2656dc98f891484af22776a631548ba4a43f23b /proto-libevdev/ftnoir_protocol_libevdev.cpp
parent12f02a22684c63ddb7bfa5989626e45b8032b9cf (diff)
proto/libevdev: fix typo
Issue #944
Diffstat (limited to 'proto-libevdev/ftnoir_protocol_libevdev.cpp')
-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));
}