diff options
author | unknown <kent@mysql.com> | 2005-11-03 11:42:26 +0100 |
---|---|---|
committer | unknown <kent@mysql.com> | 2005-11-03 11:42:26 +0100 |
commit | cd0a53655b0fcd52c615f5c8a8cbb3d76da56558 (patch) | |
tree | dbf2ac42fcce35cf6cbe7869df65f24dc5685657 /mysys/base64.c | |
parent | 4d65081cc5d6ba0944f704b831f16397ee491a6d (diff) | |
download | mariadb-git-cd0a53655b0fcd52c615f5c8a8cbb3d76da56558.tar.gz |
base64.c:
Pack ported compatibility changes from 5.1
mysys/base64.c:
Pack ported compatibility changes from 5.1
Diffstat (limited to 'mysys/base64.c')
-rw-r--r-- | mysys/base64.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mysys/base64.c b/mysys/base64.c index 0165982fb67..73cb25017b6 100644 --- a/mysys/base64.c +++ b/mysys/base64.c @@ -15,7 +15,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include <base64.h> -#include <m_string.h> // strchr() +#include <m_string.h> /* strchr() */ #ifndef MAIN @@ -134,7 +134,8 @@ base64_decode(const char *src, size_t size, void *dst) { char b[3]; size_t i= 0; - void *d= dst; + char *dst_base= (char *)dst; + char *d= dst_base; size_t j; while (i < size) @@ -193,7 +194,7 @@ base64_decode(const char *src, size_t size, void *dst) { return -1; } - return d - dst; + return d - dst_base; } |