diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-12-21 13:52:54 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-02-23 11:35:11 +0000 |
commit | a211981d4a12b0ef6cab48b7a04ae9e5674cac01 (patch) | |
tree | 081c71748d5a369e632c1fa15ce6dd6d8c6ce493 /src/mm-modem-helpers-qmi.c | |
parent | 657cabcfce6794d2a2f629d63dbd56fc149dab2e (diff) |
libmm-glib,common-helpers: make hexstr2bin() accept input string length
Optionally given explicitly, and -1 can be used to assume it's
NUL-terminated.
Diffstat (limited to 'src/mm-modem-helpers-qmi.c')
-rw-r--r-- | src/mm-modem-helpers-qmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-modem-helpers-qmi.c b/src/mm-modem-helpers-qmi.c index 4180a268..6820419e 100644 --- a/src/mm-modem-helpers-qmi.c +++ b/src/mm-modem-helpers-qmi.c @@ -1815,7 +1815,7 @@ mm_firmware_unique_id_to_qmi_unique_id (const gchar *unique_id, gsize tmp_len; tmp_len = 0; - tmp = (guint8 *) mm_utils_hexstr2bin (unique_id, &tmp_len, error); + tmp = (guint8 *) mm_utils_hexstr2bin (unique_id, -1, &tmp_len, error); if (!tmp) { g_prefix_error (error, "Unexpected character found in unique id: "); return NULL; |