* help.c: Fixed an invalid memory access, which has been noted
by Vitja Makarov.
Этот коммит содержится в:
родитель
37ffcf9ae7
Коммит
390f69bc30
@ -1,6 +1,8 @@
|
||||
2005-07-22 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* ext.c: Fixed a typo which has been noted by Arpad Biro.
|
||||
* help.c: Fixed an invalid memory access, which has been noted
|
||||
by Vitja Makarov.
|
||||
|
||||
2005-07-20 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
|
@ -551,10 +551,17 @@ static void
|
||||
help_help_cmd (void *data)
|
||||
{
|
||||
Dlg_head *h = data;
|
||||
const char *p;
|
||||
|
||||
history_ptr = (history_ptr+1) % HISTORY_SIZE;
|
||||
history [history_ptr].page = currentpoint;
|
||||
history [history_ptr].link = selected_item;
|
||||
currentpoint = startpoint = search_string (data, "[How to use help]") + 1;
|
||||
|
||||
p = search_string(data, "[How to use help]");
|
||||
if (p == NULL)
|
||||
return;
|
||||
|
||||
currentpoint = startpoint = p + 1;
|
||||
selected_item = NULL;
|
||||
help_callback (h, DLG_DRAW, 0);
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user