Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib/str-sanitize.h @ 9658:8ba4253adc9b HEAD tip
*-login: SSL connections didn't get closed when the client got destroyed.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 08 May 2014 16:41:29 +0300 |
parents | f359a0a9407f |
children |
line wrap: on
line source
#ifndef STR_SANITIZE_H #define STR_SANITIZE_H /* All control characters in src will be appended as '?'. If src is longer than max_len, it's truncated with "..." appended to the end. */ void str_sanitize_append(string_t *dest, const char *src, size_t max_len); /* Return src sanitized. If there are no changes, src pointer is returned. If src is NULL, returns NULL. */ const char *str_sanitize(const char *src, size_t max_len); #endif