--- 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 #include -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 )