summaryrefslogtreecommitdiff
path: root/ext/mysql/libmysql/m_string.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysql/libmysql/m_string.h')
-rw-r--r--ext/mysql/libmysql/m_string.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysql/libmysql/m_string.h b/ext/mysql/libmysql/m_string.h
index bc1fa06046..1bc3144fdb 100644
--- a/ext/mysql/libmysql/m_string.h
+++ b/ext/mysql/libmysql/m_string.h
@@ -48,7 +48,7 @@ This file is public domain and comes with NO WARRANTY of any kind */
#if !defined(HAVE_MEMCPY) && !defined(HAVE_MEMMOVE)
# define memcpy(d, s, n) bcopy ((s), (d), (n))
# define memset(A,C,B) bfill((A),(B),(C))
-# define memmove(d, s, n) bmove ((s), (d), (n))
+# define memmove(d, s, n) bmove ((d), (s), (n))
#elif defined(HAVE_MEMMOVE)
# define bmove(d, s, n) memmove((d), (s), (n))
#else
@@ -126,7 +126,7 @@ extern void bmove512(gptr dst,const gptr src,uint len);
#endif
#if !defined(HAVE_BMOVE) && !defined(bmove)
-extern void bmove(gptr dst,const char *src,uint len);
+extern void bmove(char *dst, const char *src,uint len);
#endif
extern void bmove_upp(char *dst,const char *src,uint len);