summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2016-03-10 15:22:34 +0800
committerXinchen Hui <laruence@gmail.com>2016-03-10 15:22:34 +0800
commit915a3762ef71526d6deddf95bf42a6d5bf5211f3 (patch)
tree3bc0405f6ab8bb40382108603e218f3b46b7cd98
parenta1d1f54b42be75cfbcf5b84b100a37be3db9057d (diff)
downloadphp-git-915a3762ef71526d6deddf95bf42a6d5bf5211f3.tar.gz
Fixed typo (partially fix for #71753)
-rw-r--r--ext/standard/uuencode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/uuencode.c b/ext/standard/uuencode.c
index 0a2b2b5b85..cd35c288ee 100644
--- a/ext/standard/uuencode.c
+++ b/ext/standard/uuencode.c
@@ -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;