summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorBjorn Munch <Bjorn.Munch@sun.com>2010-01-20 14:22:34 +0100
committerBjorn Munch <Bjorn.Munch@sun.com>2010-01-20 14:22:34 +0100
commit21f728d94c18e69aa96676e23ac53e44af37ea45 (patch)
treea666e6fe05ffb3a85619fcd061abdaced55179e0 /client
parent99d1d85daabfe671d2776da7aa822dc61c6f2b50 (diff)
parent35d0d10ac281acb87b35caec0ceb0eade9a6927d (diff)
downloadmariadb-git-21f728d94c18e69aa96676e23ac53e44af37ea45.tar.gz
merge 48888
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.cc4
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)
{