From dfdaa4198764ed45a54b54cca7b510bda0f21414 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 3 Nov 2023 15:41:07 +0100 Subject: [PATCH] wrong string formatter --- client/src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/util.c b/client/src/util.c index 51dbc0a19..640178959 100644 --- a/client/src/util.c +++ b/client/src/util.c @@ -860,7 +860,7 @@ int param_getbin_to_eol(const char *line, int paramnum, uint8_t *data, int maxda if (strlen(buf) > 0) { uint32_t temp = 0; - sscanf(buf, "%d", &temp); + sscanf(buf, "%u", &temp); data[*datalen] = (uint8_t)(temp & 0xff); *buf = 0; (*datalen)++;