Fix bug #73645 - int/size_t confusion
authorStanislav Malyshev <stas@php.net>
Tue, 6 Dec 2016 06:16:00 +0000 (22:16 -0800)
committerStanislav Malyshev <stas@php.net>
Tue, 6 Dec 2016 06:16:00 +0000 (22:16 -0800)
ext/standard/versioning.c

index 688f25afadd25fd0d6e6a170d6d9dd07be42d188..29f421c72fdb563e99f5d6d2a57ec77dd3f8a17a 100644 (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;