summaryrefslogtreecommitdiff
path: root/sql/spatial.cc
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2004-03-16 00:42:10 +0200
committerunknown <monty@mysql.com>2004-03-16 00:42:10 +0200
commit0952bf2da5a8adf26794b730f98bfa18f95d28db (patch)
tree4fb956f41d3d1d9d7e092a6304f23aeafada895f /sql/spatial.cc
parent0dbf737aa2ef118a92bcfd6a0ddc91cb92f30e0a (diff)
downloadmariadb-git-0952bf2da5a8adf26794b730f98bfa18f95d28db.tar.gz
Fixed memory overrun in spatial init code
sql/spatial.cc: Fixed memory overrun sql/spatial.h: Fixed memory overrun
Diffstat (limited to 'sql/spatial.cc')
-rw-r--r--sql/spatial.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/spatial.cc b/sql/spatial.cc
index ec6bfb307b9..ab415d9af10 100644
--- a/sql/spatial.cc
+++ b/sql/spatial.cc
@@ -19,7 +19,7 @@
/***************************** Gis_class_info *******************************/
-Geometry::Class_info *Geometry::ci_collection[Geometry::wkb_end]=
+Geometry::Class_info *Geometry::ci_collection[Geometry::wkb_end+1]=
{
NULL, NULL, NULL, NULL, NULL, NULL, NULL
};