From ba4557fc9d049b27fce357301c72433139f2a44a Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Sun, 2 Dec 2001 16:26:08 +0000 Subject: [w3m-dev 02605] From: Kiyokazu SUTO --- history.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'history.c') diff --git a/history.c b/history.c index 22bb42a..583b72a 100644 --- a/history.c +++ b/history.c @@ -1,4 +1,4 @@ -/* $Id: history.c,v 1.4 2001/11/24 02:01:26 ukai Exp $ */ +/* $Id: history.c,v 1.5 2001/12/02 16:26:08 ukai Exp $ */ #include "fm.h" #ifdef USE_HISTORY @@ -89,7 +89,7 @@ unshiftHist(Hist *hist, char *ptr) if (hist == NULL || hist->list == NULL) return NULL; - item = (HistItem *)newListItem((void *)allocStr(ptr, 0), + item = (HistItem *)newListItem((void *)allocStr(ptr, -1), (ListItem *)hist->list->first, NULL); if (hist->list->first) hist->list->first->prev = item; @@ -107,7 +107,7 @@ pushHist(Hist *hist, char *ptr) if (hist == NULL || hist->list == NULL) return NULL; - item = (HistItem *)newListItem((void *)allocStr(ptr, 0), + item = (HistItem *)newListItem((void *)allocStr(ptr, -1), NULL, (ListItem *)hist->list->last); if (hist->list->last) hist->list->last->next = item; -- cgit v1.2.3