patch-ext_gd_libgd_gdkanji_c 567 B

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