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 3bc5c9a242b..8068a839052 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -110,7 +110,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));