eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 98b758f8934a95f961e3b5779bcc9b25b30ae97a
parent 89309a862108c4caac41995b5fc76ade859d87a8
Author: Jiajie Chen <c@jia.je>
Date:   Sun, 26 Feb 2023 14:25:26 +0800

knownnetworks: fix printing SSID in hex

Force conversion to unsigned char before printing to avoid sign
extension when printing SSID in hex. For example, if there are CJK
characters in SSID, it will generate a very long string like
/net/connman/iwd/ffffffe8ffffffaeffffffa1.

Diffstat:
Msrc/knownnetworks.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/knownnetworks.c b/src/knownnetworks.c @@ -174,7 +174,7 @@ static const char *known_network_get_path(const struct network_info *network) for (i = 0; network->ssid[i] && pos < sizeof(path); i++) pos += snprintf(path + pos, sizeof(path) - pos, "%02x", - network->ssid[i]); + (unsigned char)network->ssid[i]); if (pos < sizeof(path)) snprintf(path + pos, sizeof(path) - pos, "_%s",