[Bug 505278] - nsWifiAccessPoint::GetSsid doesn't do what it thinks it does with embedded nulls. r=dbaron

This commit is contained in:
Doug Turner 2009-07-22 13:32:40 -07:00
Родитель 47d3537245
Коммит 6d75c40815
1 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -38,6 +38,7 @@
* ***** END LICENSE BLOCK ***** */
#include "nsWifiAccessPoint.h"
#include "nsString.h"
#include "nsMemory.h"
#include "prlog.h"
@ -71,11 +72,7 @@ NS_IMETHODIMP nsWifiAccessPoint::GetSsid(nsAString& aSsid)
{
// just assign and embedded nulls will truncate resulting
// in a displayable string.
nsString tempStr;
tempStr.AssignWithConversion(mSsid, mSsidLen);
aSsid = tempStr;
CopyASCIItoUTF16(mSsid, aSsid);
return NS_OK;
}