Bug 108383

removing strtok() for parsing -P correctly
as it should be.  strtok() was added by mistake 10430
/r=ccarlen; /sr=alecf
This commit is contained in:
yokoyama%netscape.com 2001-11-06 00:44:18 +00:00
parent 0c81cb1768
commit 2f71666636

View File

@ -781,8 +781,7 @@ nsProfile::ProcessArgs(nsICmdLineService *cmdLineArgs,
// convert the profile name to Unicode
nsAutoString currProfileName;
nsCAutoString profileName(strtok(NS_CONST_CAST(char*,(const char*)cmdResult), " "));
rv = ConvertStringToUnicode(charSet, profileName.get(), currProfileName);
rv = ConvertStringToUnicode(charSet, cmdResult, currProfileName);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to convert ProfileName to unicode");
#ifdef DEBUG_profile