Skip to content
Commit ed8c9997 authored by Johann Fischer's avatar Johann Fischer Committed by Johan Hedberg
Browse files

usb: device: allow uneven SN to be obtained from HWINFO



If the length of the string literal reserved for the serial number
descriptor is odd, the string is not used because its length is always
even and therefore one character longer. Fix this by using the shortest
length for the copy.

Signed-off-by: default avatarJohann Fischer <johann.fischer@nordicsemi.no>
parent 486d109e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment