mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
base64.c:
Pack ported compatibility changes from 5.1 mysys/base64.c: Pack ported compatibility changes from 5.1
This commit is contained in:
parent
4d65081cc5
commit
cd0a53655b
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue