forked from KolibriOS/kolibrios
CMM: fix strchr in WebView and Liza
git-svn-id: svn://kolibrios.org@5625 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
155cf5487f
commit
17a7b0eed7
@ -113,10 +113,10 @@ void LinksArray::GetAbsoluteURL(dword in_URL){
|
||||
IF (!strcmpn(in_URL,"./", 2)) in_URL+=2;
|
||||
strcpy(#newurl, BrowserHistory.CurrentUrl());
|
||||
|
||||
if (ESBYTE[in_URL] == '/')
|
||||
if (ESBYTE[in_URL] == '/') //remove everything after site domain name
|
||||
{
|
||||
i = strchr(#newurl+8, '/');
|
||||
if (i>0) newurl[i+7]=0;
|
||||
if (i) ESBYTE[i]=0;
|
||||
in_URL+=1;
|
||||
}
|
||||
|
||||
|
@ -400,7 +400,7 @@ inline fastcall void chrcat(ESI, BL)
|
||||
}
|
||||
|
||||
|
||||
/*inline fastcall signed int strchr( ESI,BL)
|
||||
inline fastcall signed int old_strchr( ESI,BL)
|
||||
{
|
||||
int jj=0;
|
||||
do{
|
||||
@ -409,7 +409,7 @@ inline fastcall void chrcat(ESI, BL)
|
||||
IF(AL==BL) return jj;
|
||||
} while(AL!=0);
|
||||
return 0;
|
||||
}*/
|
||||
}
|
||||
|
||||
inline dword strchr(dword shb;char s)
|
||||
{
|
||||
@ -919,7 +919,6 @@ inline void debugi(dword d_int)
|
||||
}
|
||||
|
||||
|
||||
//#define strncpy strcpyn
|
||||
#define strnmov strmovn
|
||||
#define stricmp strcmpi
|
||||
#define strcmpn strncmp
|
||||
|
@ -136,9 +136,9 @@ void OpenMailDat() {
|
||||
}
|
||||
else
|
||||
{
|
||||
strcpy(#pass_b64, #read_data+strchr(#read_data, '\n')+1);
|
||||
strcpy(#pass_b64, strchr(#read_data, '\n'));
|
||||
base64_decode stdcall (#pass_b64, #pass_text, strlen(#pass_b64));
|
||||
read_data[strchr(#read_data, '\n')-1] = NULL;
|
||||
ESBYTE[strchr(#read_data, '\n')] = NULL;
|
||||
strcpy(#email_text, #read_data);
|
||||
}
|
||||
pass_box.size = pass_box.pos = strlen(#pass_text);
|
||||
|
@ -209,13 +209,13 @@ void DrawLoginScreen()
|
||||
|
||||
void GetSettings()
|
||||
{
|
||||
int at_pos = strchr(#email_text,'@');
|
||||
strlcpy(#login, #email_text, at_pos-1);
|
||||
strcpy(#login, #email_text);
|
||||
ESBYTE[strchr(#login,'@')] = NULL;
|
||||
|
||||
if (checked[CUSTOM])
|
||||
{
|
||||
strcpy(#POP_server_path, "pop.");
|
||||
strcat(#POP_server_path, #email_text+at_pos);
|
||||
strcat(#POP_server_path, strchr(#email_text,'@')+1);
|
||||
POP_server_port = DEFAULT_POP_PORT;
|
||||
}
|
||||
if (checked[MANUAL])
|
||||
|
Loading…
Reference in New Issue
Block a user