diff --git a/src/switch_utils.c b/src/switch_utils.c index 3b9ad79c2f..ea6a0a2dfa 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -466,7 +466,7 @@ SWITCH_DECLARE(switch_status_t) switch_b64_encode(unsigned char *in, switch_size b = (b << 8) + in[x]; l += 8; - if ((X % 1024) == 0) { + if ((x % 1024) == 0) { switch_cond_next(); /* give other processes/threads a chance */ } while (l >= 6) {