aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-02 16:26:08 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-02 16:26:08 +0000
commitba4557fc9d049b27fce357301c72433139f2a44a (patch)
tree341367a1626bfdd732a9a569c2f95edeab3b4406 /main.c
parent[w3m-dev 02604] (diff)
downloadw3m-ba4557fc9d049b27fce357301c72433139f2a44a.tar.gz
w3m-ba4557fc9d049b27fce357301c72433139f2a44a.zip
[w3m-dev 02605]
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 5 insertions, 5 deletions
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 <signal.h>
@@ -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