summaryrefslogtreecommitdiff
path: root/myisam/ft_boolean_search.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-12-07 21:41:29 +0100
committerunknown <serg@serg.mylan>2004-12-07 21:41:29 +0100
commit27c6192e82bffc5f340d548b987eac17fdb86494 (patch)
treedd97da84437a75765d8d88bde3fc7eecf3ad3630 /myisam/ft_boolean_search.c
parent6e4a848dcc4c0033bd539b90eee617acc14835fb (diff)
downloadmariadb-git-27c6192e82bffc5f340d548b987eac17fdb86494.tar.gz
allocate a buffer large enough for a longer matching string
Diffstat (limited to 'myisam/ft_boolean_search.c')
-rw-r--r--myisam/ft_boolean_search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/ft_boolean_search.c b/myisam/ft_boolean_search.c
index c432ac5a16c..ffc7e1bf104 100644
--- a/myisam/ft_boolean_search.c
+++ b/myisam/ft_boolean_search.c
@@ -155,7 +155,7 @@ static void _ftb_parse_query(FTB *ftb, byte **start, byte *end,
ftbw=(FTB_WORD *)alloc_root(&ftb->mem_root,
sizeof(FTB_WORD) +
(param.trunc ? MI_MAX_KEY_BUFF :
- w.len+extra));
+ w.len*ftb->charset->mbmaxlen+extra));
ftbw->len=w.len+1;
ftbw->flags=0;
ftbw->off=0;