author | kergoth <kergoth> | 2003-04-15 00:38:36 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-04-15 00:38:36 (UTC) |
commit | 54c3c91b776f277fdcf2e78621a28e98cc55ab5b (patch) (unidiff) | |
tree | 1941fc77e46a47b745380388a6b12c0924524c81 | |
parent | 02f76303f1b134c26b13c30f97295e78ffca051b (diff) | |
download | opie-54c3c91b776f277fdcf2e78621a28e98cc55ab5b.zip opie-54c3c91b776f277fdcf2e78621a28e98cc55ab5b.tar.gz opie-54c3c91b776f277fdcf2e78621a28e98cc55ab5b.tar.bz2 |
BUGFIX: Dont cut off the last character of the ESSID.
-rw-r--r-- | noncore/settings/networksettings/wlan/wextensions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/networksettings/wlan/wextensions.cpp b/noncore/settings/networksettings/wlan/wextensions.cpp index 827d075..bd7cf93 100644 --- a/noncore/settings/networksettings/wlan/wextensions.cpp +++ b/noncore/settings/networksettings/wlan/wextensions.cpp | |||
@@ -59,13 +59,13 @@ QString WExtensions::station(){ | |||
59 | * @return QString the essid of the host 802.11 access point. | 59 | * @return QString the essid of the host 802.11 access point. |
60 | */ | 60 | */ |
61 | QString WExtensions::essid(){ | 61 | QString WExtensions::essid(){ |
62 | if(!hasWirelessExtensions) | 62 | if(!hasWirelessExtensions) |
63 | return QString(); | 63 | return QString(); |
64 | if ( 0 == ioctl( fd, SIOCGIWESSID, &iwr )){ | 64 | if ( 0 == ioctl( fd, SIOCGIWESSID, &iwr )){ |
65 | iwr.u.essid.pointer[(unsigned int) iwr.u.essid.length-1] = '\0'; | 65 | iwr.u.essid.pointer[(unsigned int) iwr.u.essid.length] = '\0'; |
66 | return QString(iwr.u.essid.pointer); | 66 | return QString(iwr.u.essid.pointer); |
67 | } | 67 | } |
68 | return QString(); | 68 | return QString(); |
69 | } | 69 | } |
70 | 70 | ||
71 | /** | 71 | /** |