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
Родитель 0c81cb1768
Коммит 2f71666636
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -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