#31173 [Opn->Csd]: php_sprintf.c uses wrong type for vsprintf() retval
| From: | sniper@php.net | Date: | Sat, 18 Dec 2004 03:17:07 +0000 |
| Subject: | #31173 [Opn->Csd]: php_sprintf.c uses wrong type for vsprintf() retval | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-70582@lists.php.net to get a copy of this message | ||
ID: 31173
Updated by: sniper@php.net
Reported By: lukem at NetBSD dot org
-Status: Open
+Status: Closed
Bug Type: Compile Warning
Operating System: NetBSD
PHP Version: 4.3.10
New Comment:
Was already fixed yesterday.
Previous Comments:
------------------------------------------------------------------------
[2004-12-18 04:04:51] lukem at NetBSD dot org
Description:
------------
php_sprintf.c::php_sprintf() has
char *ret;
// [...]
ret = vsprintf (s, format, args);
yet vsprintf() returns
int' not char *'.
The fix is trivial; replace
char *ret;
with
int ret;
on line 29 of main/php_sprintf.c
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31173&edit=1