diff options
author | Bjorn Munch <Bjorn.Munch@sun.com> | 2010-01-20 14:22:34 +0100 |
---|---|---|
committer | Bjorn Munch <Bjorn.Munch@sun.com> | 2010-01-20 14:22:34 +0100 |
commit | 87ff57cb7eaefd87e54ec0cbf80f71af2167581a (patch) | |
tree | a666e6fe05ffb3a85619fcd061abdaced55179e0 /client | |
parent | a1c940535464869f11287ec193d5d1ce9afcb8b5 (diff) | |
parent | b554f4c52d072518548f41c609144f98f2fae237 (diff) | |
download | mariadb-git-87ff57cb7eaefd87e54ec0cbf80f71af2167581a.tar.gz |
merge 48888
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc index 68668c92e3e..bafc5f6781d 100644 --- a/client/mysqltest.cc +++ b/client/mysqltest.cc @@ -9477,7 +9477,7 @@ int insert_pointer_name(reg1 POINTER_ARRAY *pa,char * name) if (pa->length+length >= pa->max_length) { if (!(new_pos= (uchar*) my_realloc((uchar*) pa->str, - (uint) (pa->max_length+PS_MALLOC), + (uint) (pa->length+length+PS_MALLOC), MYF(MY_WME)))) DBUG_RETURN(1); if (new_pos != pa->str) @@ -9488,7 +9488,7 @@ int insert_pointer_name(reg1 POINTER_ARRAY *pa,char * name) char*); pa->str=new_pos; } - pa->max_length+=PS_MALLOC; + pa->max_length= pa->length+length+PS_MALLOC; } if (pa->typelib.count >= pa->max_count-1) { |