1
1

* help.c: Fixed an invalid memory access, which has been noted

by Vitja Makarov.
Этот коммит содержится в:
Roland Illig 2005-07-22 08:41:45 +00:00
родитель 37ffcf9ae7
Коммит 390f69bc30
2 изменённых файлов: 10 добавлений и 1 удалений

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

@ -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);
}