From 54c3c91b776f277fdcf2e78621a28e98cc55ab5b Mon Sep 17 00:00:00 2001 From: kergoth Date: Tue, 15 Apr 2003 00:38:36 +0000 Subject: BUGFIX: Dont cut off the last character of the ESSID. --- (limited to 'noncore') 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 @@ -62,7 +62,7 @@ QString WExtensions::essid(){ if(!hasWirelessExtensions) return QString(); if ( 0 == ioctl( fd, SIOCGIWESSID, &iwr )){ - iwr.u.essid.pointer[(unsigned int) iwr.u.essid.length-1] = '\0'; + iwr.u.essid.pointer[(unsigned int) iwr.u.essid.length] = '\0'; return QString(iwr.u.essid.pointer); } return QString(); -- cgit v0.9.0.2