summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2016-12-05 22:16:00 -0800
committerStanislav Malyshev <stas@php.net>2016-12-05 22:16:00 -0800
commit1d59ed75246c7d05688accc349fda70cbee90428 (patch)
tree1bc31453541b73ce57415fbf566beb2229640482
parent6292fe84d314bdb8504968084666a683983f8044 (diff)
downloadphp-git-1d59ed75246c7d05688accc349fda70cbee90428.tar.gz
Fix bug #73645 - int/size_t confusion
-rw-r--r--ext/standard/versioning.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/versioning.c b/ext/standard/versioning.c
index 688f25afad..29f421c72f 100644
--- a/ext/standard/versioning.c
+++ b/ext/standard/versioning.c
@@ -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;