Fix bug #73645 - int/size_t confusion

This commit is contained in:
Stanislav Malyshev 2016-12-05 22:16:00 -08:00
parent 6292fe84d3
commit 1d59ed7524

View File

@ -12,7 +12,7 @@
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Stig Sæther Bakken <ssb@php.net> |
| Author: Stig Sæther Bakken <ssb@php.net> |
+----------------------------------------------------------------------+
*/
@ -33,7 +33,7 @@
PHPAPI char *
php_canonicalize_version(const char *version)
{
int len = strlen(version);
size_t len = strlen(version);
char *buf = safe_emalloc(len, 2, 1), *q, lp, lq;
const char *p;