diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-02 16:26:08 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-02 16:26:08 +0000 |
commit | ba4557fc9d049b27fce357301c72433139f2a44a (patch) | |
tree | 341367a1626bfdd732a9a569c2f95edeab3b4406 /history.c | |
parent | [w3m-dev 02604] (diff) | |
download | w3m-ba4557fc9d049b27fce357301c72433139f2a44a.tar.gz w3m-ba4557fc9d049b27fce357301c72433139f2a44a.zip |
[w3m-dev 02605]
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
Diffstat (limited to 'history.c')
-rw-r--r-- | history.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |