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 --- main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index f083016..1d8bf81 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.30 2001/11/30 18:06:28 ukai Exp $ */ +/* $Id: main.c,v 1.31 2001/12/02 16:26:08 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include @@ -2448,7 +2448,7 @@ gotoLabel(char *label) copyBuffer(buf, Currentbuf); for (i = 0; i < MAX_LB; i++) buf->linkBuffer[i] = NULL; - buf->currentURL.label = allocStr(label, 0); + buf->currentURL.label = allocStr(label, -1); pushHashHist(URLHist, parsedURL2Str(&buf->currentURL)->ptr); (*buf->clone)++; pushBuffer(buf); @@ -4619,17 +4619,17 @@ searchKeyData(void) KeyListItem *item; if (CurrentKeyData != NULL && *CurrentKeyData != '\0') - return allocStr(CurrentKeyData, 0); + return allocStr(CurrentKeyData, -1); #ifdef USE_MENU if (CurrentMenuData != NULL && *CurrentMenuData != '\0') - return allocStr(CurrentMenuData, 0); + return allocStr(CurrentMenuData, -1); #endif if (CurrentKey < 0) return NULL; item = searchKeyList(&w3mKeyList, CurrentKey); if (item == NULL || item->data == NULL || *item->data == '\0') return NULL; - return allocStr(item->data, 0); + return allocStr(item->data, -1); } static int -- cgit v1.2.3