iliaa           Wed Feb 28 01:01:01 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/mbstring/oniguruma     regerror.c 
  Log:
  Adjust vsnprintf() usage
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/oniguruma/regerror.c?r1=1.3.4.5&r2=1.3.4.6&diff_format=u
Index: php-src/ext/mbstring/oniguruma/regerror.c
diff -u php-src/ext/mbstring/oniguruma/regerror.c:1.3.4.5 
php-src/ext/mbstring/oniguruma/regerror.c:1.3.4.6
--- php-src/ext/mbstring/oniguruma/regerror.c:1.3.4.5   Tue Feb 27 03:28:16 2007
+++ php-src/ext/mbstring/oniguruma/regerror.c   Wed Feb 28 01:01:01 2007
@@ -1,4 +1,4 @@
-/**********************************************************************
+
   regerror.c -  Oniguruma (regular expression library)
 **********************************************************************/
 /*-
@@ -279,7 +279,7 @@
   va_init_list(args, fmt);
   n = vsnprintf((char* )buf, bufsize, (const char* )fmt, args);
   if (n >= bufsize) {
-       return;
+       n = bufsize - 1;
   }
   va_end(args);
 

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

Reply via email to