summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-03-30 12:48:42 +0200
committerSergei Golubchik <serg@mariadb.org>2017-03-30 12:48:42 +0200
commitda4d71d10d23c1ac2d10b72baee14991ccb7a146 (patch)
tree7cdf3a8c8e72ca7c1c8105427c04123f025bd870 /strings
parent9ec85009985d644ce7ae797bc3572d0ad0f69bb0 (diff)
parenta00517ac9707ffd51c092f5af5d198c5ee789bb4 (diff)
downloadmariadb-git-da4d71d10d23c1ac2d10b72baee14991ccb7a146.tar.gz
Merge branch '10.1' into 10.2
Diffstat (limited to 'strings')
-rw-r--r--strings/strings_def.h2
-rw-r--r--strings/strmov.c1
-rw-r--r--strings/strmov_overlapp.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/strings/strings_def.h b/strings/strings_def.h
index 8bdb806d1d2..f1fcfe2f7cc 100644
--- a/strings/strings_def.h
+++ b/strings/strings_def.h
@@ -13,7 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
/* This file is to be include first in all files in the string directory */
diff --git a/strings/strmov.c b/strings/strmov.c
index b38d5db5d6e..0f594185688 100644
--- a/strings/strmov.c
+++ b/strings/strmov.c
@@ -40,6 +40,7 @@
char *strmov(register char *dst, register const char *src)
{
+ DBUG_ASSERT(src + strlen(src) < dst || dst + strlen(src) < src);
while ((*dst++ = *src++)) ;
return dst-1;
}
diff --git a/strings/strmov_overlapp.c b/strings/strmov_overlapp.c
index 59d980fc7c4..2a162c39903 100644
--- a/strings/strmov_overlapp.c
+++ b/strings/strmov_overlapp.c
@@ -11,7 +11,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
#include "strings_def.h"