cvs: php-src /ext/xmlrpc/libxmlrpc encodings.c

From: Date: Mon, 08 Mar 2004 19:08:26 +0000
Subject: cvs: php-src /ext/xmlrpc/libxmlrpc encodings.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-26544@lists.php.net to get a copy of this message
abies Mon Mar 8 14:08:26 2004 EDT Modified files: /php-src/ext/xmlrpc/libxmlrpc encodings.c Log: MFB fix #27408 http://cvs.php.net/diff.php/php-src/ext/xmlrpc/libxmlrpc/encodings.c?r1=1.5&r2=1.6&ty=u Index: php-src/ext/xmlrpc/libxmlrpc/encodings.c diff -u php-src/ext/xmlrpc/libxmlrpc/encodings.c:1.5 php-src/ext/xmlrpc/libxmlrpc/encodings.c:1.6 --- php-src/ext/xmlrpc/libxmlrpc/encodings.c:1.5 Tue Nov 26 18:02:08 2002 +++ php-src/ext/xmlrpc/libxmlrpc/encodings.c Mon Mar 8 14:08:25 2004 @@ -41,7 +41,7 @@ #include <stdlib.h> #endif -static const char rcsid[] = "#(@) $Id: encodings.c,v 1.5 2002/11/26 23:02:08 fmk Exp $"; +static const char rcsid[] = "#(@) $Id: encodings.c,v 1.6 2004/03/08 19:08:25 abies Exp $"; #include <errno.h> @@ -57,11 +57,10 @@ char* outbuf = 0; if(src && src_len && from_enc && to_enc) { - int outlenleft = src_len; + size_t outlenleft = src_len; + size_t inlenleft = src_len; int outlen = src_len; - int inlenleft = src_len; iconv_t ic = iconv_open(to_enc, from_enc); - char* src_ptr = (char*)src; char* out_ptr = 0; if(ic != (iconv_t)-1) { @@ -71,7 +70,7 @@ if(outbuf) { out_ptr = (char*)outbuf; while(inlenleft) { - st = iconv(ic, &src_ptr, &inlenleft, &out_ptr, &outlenleft); + st = iconv(ic, &src, &inlenleft, &out_ptr, &outlenleft); if(st == -1) { if(errno == E2BIG) { int diff = out_ptr - outbuf;

« previous php.cvs (#26544) next »