As per the USB specification (USB1.1, 9.6.5), do not include the
terminating null character of a C string literal in the length of a
string descriptor.
This only affects the length of the descriptor as sent. The now-superfluous terminating null characters are still allocated. This too could be fixed (with some ugly macros), but that would be a separate space optimization.
As per the USB specification (USB1.1, 9.6.5), do not include the terminating null character of a C string literal in the length of a string descriptor.
This only affects the length of the descriptor as sent. The now-superfluous terminating null characters are still allocated. This too could be fixed (with some ugly macros), but that would be a separate space optimization.