From a92718868d6d491b40d994ec8703aa3ebe6f9383 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Mon, 5 Dec 2016 22:16:00 -0800 Subject: Fix bug #73645 - int/size_t confusion (cherry picked from commit 1d59ed75246c7d05688accc349fda70cbee90428) --- ext/standard/versioning.c | 4 ++-- 1 file 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 | + | Author: Stig Sæther Bakken | +----------------------------------------------------------------------+ */ @@ -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; -- cgit v1.2.1