diff options
author | Georgi Kodinov <joro@sun.com> | 2009-12-16 19:31:19 +0200 |
---|---|---|
committer | Georgi Kodinov <joro@sun.com> | 2009-12-16 19:31:19 +0200 |
commit | adc17cd41e21cb68d63b9962a97ad075da02999f (patch) | |
tree | 3ced378450a6cc83a82e27f10b1d7183ae48f151 /strings/strmov.c | |
parent | 1f55f5b617d0df650161c58f7d0707abd4ca42e2 (diff) | |
download | mariadb-git-adc17cd41e21cb68d63b9962a97ad075da02999f.tar.gz |
Bug #48866: mysql.test fails under Fedora 12
strmov() is not guaranteed to work correctly on overlapping
source and destination buffers. On some OSes it may work,
but Fedora 12 has a stpcpy() that's not working correctly
on overlapping buffers.
Fixed to use the overlap-safe version of strmov instead.
Re-vitalized the overlap-safe version of strmov.
Diffstat (limited to 'strings/strmov.c')
-rw-r--r-- | strings/strmov.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/strings/strmov.c b/strings/strmov.c index 1393411dd8f..eedf22a4ef1 100644 --- a/strings/strmov.c +++ b/strings/strmov.c @@ -24,13 +24,11 @@ #include <my_global.h> #include "m_string.h" -#ifdef BAD_STRING_COMPILER +#ifdef strmov #undef strmov #define strmov strmov_overlapp #endif -#ifndef strmov - #if !defined(MC68000) && !defined(DS90) char *strmov(register char *dst, register const char *src) @@ -53,5 +51,3 @@ char *strmov(dst, src) } #endif - -#endif /* strmov */ |