From 7a17a1f9b07ee1df3a0f8f08850c207a3cdc3479 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 17 Nov 2019 20:00:17 +0000 Subject: signal_level should be signed --- src/libwpactrl/wpactrl_scan_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libwpactrl/wpactrl_scan_parse.c') diff --git a/src/libwpactrl/wpactrl_scan_parse.c b/src/libwpactrl/wpactrl_scan_parse.c index e75072d..decb1cb 100644 --- a/src/libwpactrl/wpactrl_scan_parse.c +++ b/src/libwpactrl/wpactrl_scan_parse.c @@ -24,7 +24,7 @@ static int wpactrl_scan_parse_one (char const *s, size_t len, wpactrl_scanres_t s += pos + 1 ; len -= pos + 1 ; pos = byte_chr(s, len, '\t') ; if (pos >= len) goto eproto ; - if (uint32_scan(s, &sr.signal_level) != pos) goto eproto ; + if (int32_scan(s, &sr.signal_level) != pos) goto eproto ; s += pos + 1 ; len -= pos + 1 ; pos = byte_chr(s, len, '\t') ; if (pos >= len) goto eproto ; -- cgit v1.2.3