Skip to content

Commit 8f3e97b

Browse files
author
Shishir Jaiswal
committed
Merge branch 'mysql-5.6' into mysql-5.7
2 parents 0ca0866 + 1cdd3b8 commit 8f3e97b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

strings/ctype.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights
2+
* reserved.
23
34
This program is free software; you can redistribute it and/or modify
45
it under the terms of the GNU General Public License as published by
@@ -750,7 +751,7 @@ static int cs_value(MY_XML_PARSER *st,const char *attr, size_t len)
750751

751752
/* Rules: Context */
752753
case _CS_CONTEXT:
753-
if (len < sizeof(i->context) + 1)
754+
if (len < sizeof(i->context))
754755
{
755756
memcpy(i->context, attr, len);
756757
i->context[len]= '\0';

0 commit comments

Comments
 (0)