Re: cvs: php-src(PHP_5_2) /ext/mbstring/oniguruma regerror.c
| From: | Marcus Boerger | Date: | Wed, 28 Feb 2007 01:04:48 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_2) /ext/mbstring/oniguruma regerror.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-43321@lists.php.net to get a copy of this message | ||
Hello Ilia,
isn't that simply: n = vslprintf() ?
Oh, damn wait, it's an external library. :-(
best regards
marcus
Wednesday, February 28, 2007, 2:01:01 AM, you wrote:
> 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);
>
Best regards,
Marcus