$OpenBSD: patch-ext_gd_libgd_gdkanji_c,v 1.1.1.1 2013/08/07 16:35:45 robert Exp $
--- ext/gd/libgd/gdkanji.c.orig.port	Wed Sep 26 16:44:16 2007
+++ ext/gd/libgd/gdkanji.c	Sat Jun 18 12:14:49 2011
@@ -362,7 +362,7 @@ do_convert (unsigned char *to, unsigned char *from, co
   from_len = strlen ((const char *) from) + 1;
   to_len = BUFSIZ;
 
-  if ((int) iconv(cd, (char **) &from, &from_len, (char **) &to, &to_len) == -1)
+  if ((int) iconv(cd, (const char **) &from, &from_len, (char **) &to, &to_len) == -1)
     {
 #ifdef HAVE_ERRNO_H
       if (errno == EINVAL)
