mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
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:
parent
0c81cb1768
commit
2f71666636
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user