diff options
author | Stanislav Malyshev <stas@php.net> | 2016-12-05 22:16:00 -0800 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-12-06 09:34:40 +0100 |
commit | a92718868d6d491b40d994ec8703aa3ebe6f9383 (patch) | |
tree | bf6d2fa7d00f5197a91c58f239f11796202226c2 | |
parent | a64fff6d4e738dbd111adf6813e2268018f2d15b (diff) | |
download | php-git-a92718868d6d491b40d994ec8703aa3ebe6f9383.tar.gz |
Fix bug #73645 - int/size_t confusion
(cherry picked from commit 1d59ed75246c7d05688accc349fda70cbee90428)
-rw-r--r-- | ext/standard/versioning.c | 4 |
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; |