aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--main.c5
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index ad3ae99..e931a90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-06 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * [w3m-dev 03206] Re: dict
+ * main.c (execdict): quote word
+
2002-06-06 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03204] INET6
@@ -3464,4 +3469,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.384 2002/06/05 15:29:37 ukai Exp $
+$Id: ChangeLog,v 1.385 2002/06/05 15:42:10 ukai Exp $
diff --git a/main.c b/main.c
index 134f67c..3ecd489 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.105 2002/06/05 15:29:37 ukai Exp $ */
+/* $Id: main.c,v 1.106 2002/06/05 15:42:10 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -4831,7 +4831,8 @@ execdict(char *word)
displayBuffer(Currentbuf, B_NORMAL);
return;
}
- dictcmd = Sprintf("%s?%s", DictCommand, w)->ptr;
+ dictcmd = Sprintf("%s?%s", DictCommand,
+ Str_form_quote(Strnew_charp(w))->ptr)->ptr;
buf = loadGeneralFile(dictcmd, NULL, NO_REFERER, 0, NULL);
if (buf == NULL) {
disp_message("Execution failed", FALSE);