aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/evdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/evdev.c b/backends/evdev.c
index 8a14200..4c734f9 100644
--- a/backends/evdev.c
+++ b/backends/evdev.c
@@ -206,6 +206,7 @@ static int evdev_configure_instance(instance* inst, char* option, char* value) {
else if(data->relative_axis[data->relative_axes].max == 0){
LOGPF("Relative axis configuration for %s.%s has invalid range", inst->name, option + 8);
}
+ //this does not crash on single-integer `value`s because strtoll sets `next_token` to the terminator
data->relative_axis[data->relative_axes].current = strtoul(next_token, NULL, 0);
if(data->relative_axis[data->relative_axes].code < 0){
LOGPF("Failed to configure relative axis extents for %s.%s", inst->name, option + 8);