$OpenBSD: patch-ext_gd_libgd_gdkanji_c,v 1.3 2011/06/18 19:49:50 sthen Exp $
--- ext/gd/libgd/gdkanji.c.orig.port	Sun Dec 28 20:11:08 2003
+++ ext/gd/libgd/gdkanji.c	Sat Jun 18 12:44:55 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)
