summaryrefslogtreecommitdiffstats
path: root/block/partitions
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-07-29 17:14:18 +0200
committerJiri Kosina <jkosina@suse.cz>2014-08-25 10:28:06 +0200
commit25be7fe2be879a96920cc74809e1bff1b0ae0bac (patch)
tree5aceb475e238677842f5b22fde8ce957b9932c67 /block/partitions
parentHID: uhid: avoid dangling pointers in uhid context (diff)
downloadlinux-25be7fe2be879a96920cc74809e1bff1b0ae0bac.tar.xz
linux-25be7fe2be879a96920cc74809e1bff1b0ae0bac.zip
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: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'block/partitions')
0 files changed, 0 insertions, 0 deletions