truncating the port number from the popservername because it causes problem

in creating directory on windows (Name:port)
This commit is contained in:
naving%netscape.com 2000-08-31 01:45:58 +00:00
Родитель 7135f5c822
Коммит dbc4356788
1 изменённых файлов: 12 добавлений и 2 удалений

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

@ -917,8 +917,18 @@ nsPrefMigration::ProcessPrefsCallback(const char* oldProfilePathStr, const char
m_prefs->CopyCharPref(PREF_NETWORK_HOSTS_POP_SERVER, &popServerName);
rv = newPOPMailPath->AppendRelativeUnixPath(popServerName);
if (NS_FAILED(rv)) return rv;
//popServerName = strtok (popServerName,":");
int i =0;
while (popServerName[i] != '\0' ){
if ( popServerName[i] == ':' ) {
popServerName[i] = '\0';
break;
}
i++;
}
rv = newPOPMailPath->AppendRelativeUnixPath(popServerName);
if (NS_FAILED(rv)) return rv;
rv = newPOPMailPath->Exists(&exists);
if (NS_FAILED(rv)) return rv;