sesser          Thu Feb 12 13:27:34 2004 EDT

  Modified files:              
    /php-src/main       rfc1867.c 
  Log:
  better write into the correct buffer
  
  
  
  
http://cvs.php.net/diff.php/php-src/main/rfc1867.c?r1=1.150&r2=1.151&ty=u
Index: php-src/main/rfc1867.c
diff -u php-src/main/rfc1867.c:1.150 php-src/main/rfc1867.c:1.151
--- php-src/main/rfc1867.c:1.150        Thu Jan  8 03:17:54 2004
+++ php-src/main/rfc1867.c      Thu Feb 12 13:27:33 2004
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: rfc1867.c,v 1.150 2004/01/08 08:17:54 andi Exp $ */
+/* $Id: rfc1867.c,v 1.151 2004/02/12 18:27:33 sesser Exp $ */
 
 /*
  *  This product includes software developed by the Apache Group
@@ -90,6 +90,9 @@
        if (*num_vars>=*num_vars_max){  
                php_mb_gpc_realloc_buffer(pval_list, plen_list, num_vars_max, 
                                                                  16 TSRMLS_CC);
+               /* in case realloc relocated the buffer */
+               val_list = *pval_list;
+               len_list = *plen_list;
        }
 
        val_list[*num_vars] = (char *)estrdup(param);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to