X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/f675bf30a2ce6242cfc7c3e3997ec5d68a1fca7a..17c761988f30054827a9951761d93ffeeaad0cb7:/src/src/tls.c diff --git a/src/src/tls.c b/src/src/tls.c index d975a2c89..f0eba37f8 100644 --- a/src/src/tls.c +++ b/src/src/tls.c @@ -34,7 +34,7 @@ functions and the common functions below. */ static uschar *ssl_xfer_buffer = NULL; -static int ssl_xfer_buffer_size = 4096; +static const int ssl_xfer_buffer_size = 4096; static int ssl_xfer_buffer_lwm = 0; static int ssl_xfer_buffer_hwm = 0; static int ssl_xfer_eof = 0; @@ -59,11 +59,11 @@ Returns: TRUE if OK; result may still be NULL after forced failure */ static BOOL -expand_check(uschar *s, uschar *name, uschar **result) +expand_check(const uschar *s, const uschar *name, uschar **result) { if (s == NULL) *result = NULL; else { - *result = expand_string(s); + *result = expand_string(US s); /* need to clean up const some more */ if (*result == NULL && !expand_string_forcedfail) { log_write(0, LOG_MAIN|LOG_PANIC, "expansion of %s failed: %s", name,