Fix trailing NUL string reading (1.24)
Otherwise, --dms-swi-get-current-firmware will fail to report the correct strings:
# qmicli -d /dev/cdc-wdm0 -p --dms-swi-get-current-firmware
[/dev/cdc-wdm0] Successfully retrieved current firmware:
Model: M??!S&
Boot version: S.%J?k??C>A_ceL?.?Lq$??
AMSS version: S.%J?k??C>A_ceL?.?Lq$??
SKU ID: ???6
Package ID: unknown
Carrier ID: 1
?????? Config version: 0?Hq$f
(cherry picked from commit e4052d52)