You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-db/mysql-udf-base64/files/mysql-udf-base64-signedness...

30 lines
879 B

--- mysql-udf-base64.c.orig 2011-10-16 14:17:13.000000000 +0200
+++ mysql-udf-base64.c 2011-10-16 14:18:41.000000000 +0200
@@ -49,7 +49,7 @@
#include <string.h>
#include <mysql/mysql.h>
-static char base64_table[] =
+static const char base64_table[] =
{ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
@@ -101,7 +101,7 @@
unsigned long len;
/* *is_null=0; */
- current = args->args[0];
+ current = (unsigned char*) args->args[0];
len = args->lengths[0];
if (len <= 0 || args->arg_type[0] != STRING_RESULT )
@@ -211,7 +211,7 @@
}
}
- current = args->args[0];
+ current = (unsigned char*) args->args[0];
len = args->lengths[0];
if (len <= 0 || args->arg_type[0] != STRING_RESULT )