patch-ext_xmlrpc_libxmlrpc_encodings_c 682 B

12345678910111213
  1. $OpenBSD: patch-ext_xmlrpc_libxmlrpc_encodings_c,v 1.1.1.1 2013/08/07 16:46:55 robert Exp $
  2. --- ext/xmlrpc/libxmlrpc/encodings.c.orig.port Wed Sep 26 16:44:16 2007
  3. +++ ext/xmlrpc/libxmlrpc/encodings.c Sat Jun 18 12:14:51 2011
  4. @@ -78,7 +78,7 @@ static char* convert(const char* src, int src_len, int
  5. if(outbuf) {
  6. out_ptr = (char*)outbuf;
  7. while(inlenleft) {
  8. - st = iconv(ic, (char**)&src, &inlenleft, &out_ptr, &outlenleft);
  9. + st = iconv(ic, (const char**)&src, &inlenleft, &out_ptr, &outlenleft);
  10. if(st == -1) {
  11. if(errno == E2BIG) {
  12. int diff = out_ptr - outbuf;