summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--myisam/sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/sort.c b/myisam/sort.c
index 0bbf7efa659..e8cd9938e42 100644
--- a/myisam/sort.c
+++ b/myisam/sort.c
@@ -589,7 +589,7 @@ int thr_write_keys(MI_SORT_PARAM *sort_param)
!my_b_read(&sinfo->tempfile_for_exceptions,(byte*)&key_length,
sizeof(key_length)))
{
- byte ft_buf[HA_FT_MAXLEN + HA_FT_WLEN + 10];
+ byte ft_buf[HA_FT_MAXBYTELEN + HA_FT_WLEN + 10];
if (key_length > sizeof(ft_buf) ||
my_b_read(&sinfo->tempfile_for_exceptions, (byte*)ft_buf,
(uint)key_length) ||