summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/table.cc b/sql/table.cc
index ab80fd1f7fb..b4548f4d90b 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -111,7 +111,7 @@ int openfrm(THD *thd, const char *name, const char *alias, uint db_stat,
if (my_read(file,(byte*) head,64,MYF(MY_NABP)))
goto err;
- if (memcmp(head, "TYPE=", 5) == 0)
+ if (memcmp(head, STRING_WITH_LEN("TYPE=")) == 0)
{
// new .frm
my_close(file,MYF(MY_WME));