From 51bd5e7bffead673baa5547cf7edd33835906a84 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 5 Jun 2002 15:42:10 +0000 Subject: [w3m-dev 03206] Re: dict * main.c (execdict): quote word From: Fumitoshi UKAI --- main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.c') 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 @@ -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); -- cgit v1.2.3