Commit 11d6c967 authored by kent@mysql.com's avatar kent@mysql.com

Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.0

into mysql.com:/Users/kent/mysql/bk/mysql-5.0
parents c01c7141 48040f77
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <base64.h> #include <base64.h>
#include <m_string.h> // strchr() #include <m_string.h> /* strchr() */
#ifndef MAIN #ifndef MAIN
...@@ -134,7 +134,8 @@ base64_decode(const char *src, size_t size, void *dst) ...@@ -134,7 +134,8 @@ base64_decode(const char *src, size_t size, void *dst)
{ {
char b[3]; char b[3];
size_t i= 0; size_t i= 0;
unsigned char *d= (unsigned char*)dst; char *dst_base= (char *)dst;
char *d= dst_base;
size_t j; size_t j;
while (i < size) while (i < size)
...@@ -193,7 +194,7 @@ base64_decode(const char *src, size_t size, void *dst) ...@@ -193,7 +194,7 @@ base64_decode(const char *src, size_t size, void *dst)
{ {
return -1; return -1;
} }
return d - (unsigned char*)dst; return d - dst_base;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment