summaryrefslogtreecommitdiff
blob: 5084a9dd0128c2d7d04324b8e64fdaefcfd14fe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- 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 )