]> granicus.if.org Git - php/commitdiff
Fixed typo (partially fix for #71753)
authorXinchen Hui <laruence@gmail.com>
Thu, 10 Mar 2016 07:22:34 +0000 (15:22 +0800)
committerXinchen Hui <laruence@gmail.com>
Thu, 10 Mar 2016 07:22:34 +0000 (15:22 +0800)
ext/standard/uuencode.c

index 0a2b2b5b85093c1ed10e3471c6919df93f108984..cd35c288ee87bd642c067170915f9cdba62ecb86 100644 (file)
@@ -168,7 +168,7 @@ PHPAPI int php_uudecode(char *src, int src_len, char **dest) /* {{{ */
                s++;
        }
 
-       if ((len = total_len > (p - *dest))) {
+       if ((len = total_len) > (p - *dest)) {
                *p++ = PHP_UU_DEC(*s) << 2 | PHP_UU_DEC(*(s + 1)) >> 4;
                if (len > 1) {
                        *p++ = PHP_UU_DEC(*(s + 1)) << 4 | PHP_UU_DEC(*(s + 2)) >> 2;