Skip to content
Commit 25be7fe2 authored by David Rheinsberg's avatar David Rheinsberg Committed by Jiri Kosina
Browse files

HID: uhid: avoid magic-numbers when setting strings



Avoid hard-coding the target buffer sizes and use sizeof() instead. This
also makes us future-proof to buffer-extensions later on.

Signed-off-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 41c4a464
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment