Use 3 characters for WLAN signal strength

This commit is contained in:
Michael Stapelberg 2008-11-13 19:43:27 +01:00
parent b052bfa79b
commit d9ff643b10

View File

@ -297,7 +297,7 @@ static char *get_wireless_info() {
} else { } else {
const char *ip_address; const char *ip_address;
(void)snprintf(part, sizeof(part), "W: (%02d%%) ", quality); (void)snprintf(part, sizeof(part), "W: (%03d%%) ", quality);
ip_address = get_ip_address(wlan_interface); ip_address = get_ip_address(wlan_interface);
strcpy(part+strlen(part), ip_address); strcpy(part+strlen(part), ip_address);
} }