Subversion Repositories Kolibri OS

Rev

Rev 3067 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3067 Rev 3128
Line 29... Line 29...
29
	if (history_current>=MAX_HISTORY_NUM-1)
29
	if (history_current>=MAX_HISTORY_NUM-1)
30
	{
30
	{
31
		history_current/=2;
31
		history_current/=2;
32
		for (i=0; i
32
		for (i=0; i
33
		{
33
		{
34
			strcpy(#history_list[i].Item, #history_list[MAX_HISTORY_NUM-i].Item);
34
			strlcpy(#history_list[i].Item, #history_list[MAX_HISTORY_NUM-i].Item, sizeof(history_list[0].Item));
35
		}	
35
		}	
36
	}
36
	}
37
	history_current++;
37
	history_current++;
38
	strcpy(#history_list[history_current].Item, #URL);
38
	strlcpy(#history_list[history_current].Item, #URL, sizeof(history_list[0].Item));
39
	history_num=history_current;
39
	history_num=history_current;
40
}
40
}
Line 41... Line 41...
41
 
41
 
42
 
42
 
43
byte UrlsHistory::GoBack()
43
byte UrlsHistory::GoBack()
Line 44... Line 44...
44
{
44
{
45
	if (history_current<=1) return 0;
45
	if (history_current<=1) return 0;
46
	
46
	
47
	history_current--;
47
	history_current--;
Line 48... Line 48...
48
	strcpy(#URL, #history_list[history_current].Item);
48
	strlcpy(#URL, #history_list[history_current].Item, sizeof(URL));
49
	return 1;
49
	return 1;
50
}
50
}
51
 
51
 
52
 
52
 
53
byte UrlsHistory::GoForward()
53
byte UrlsHistory::GoForward()
54
{
54
{
55
	if (history_current==history_num) return 0;
55
	if (history_current==history_num) return 0;