summaryrefslogtreecommitdiff
path: root/ext/standard/uuencode.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/uuencode.c')
-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 b2eea1f76b..e443337ec4 100644
--- a/ext/standard/uuencode.c
+++ b/ext/standard/uuencode.c
@@ -174,7 +174,7 @@ PHPAPI zend_string *php_uudecode(char *src, size_t src_len) /* {{{ */
}
assert(p >= ZSTR_VAL(dest));
- if ((len = total_len > (size_t)(p - ZSTR_VAL(dest)))) {
+ if ((len = total_len) > (size_t)(p - ZSTR_VAL(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;