diff options
Diffstat (limited to 'other/bootstrap_daemon/src/config.c')
-rw-r--r-- | other/bootstrap_daemon/src/config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/other/bootstrap_daemon/src/config.c b/other/bootstrap_daemon/src/config.c index 3f1592e6..a3c1f250 100644 --- a/other/bootstrap_daemon/src/config.c +++ b/other/bootstrap_daemon/src/config.c | |||
@@ -316,7 +316,9 @@ static uint8_t *hex_string_to_bin(const char *hex_string) | |||
316 | size_t i; | 316 | size_t i; |
317 | 317 | ||
318 | for (i = 0; i < len; ++i, pos += 2) { | 318 | for (i = 0; i < len; ++i, pos += 2) { |
319 | sscanf(pos, "%2hhx", &ret[i]); | 319 | unsigned int val; |
320 | sscanf(pos, "%02x", &val); | ||
321 | ret[i] = val; | ||
320 | } | 322 | } |
321 | 323 | ||
322 | return ret; | 324 | return ret; |