#ifdef __linux__
static bool have_proc_locks = TRUE;
struct stat st;
- char node_buf[MAX_INT_STRLEN*3 + 2 + 1];
+ char node_buf[MAX_INT_STRLEN * 3 + 2];
struct istream *input;
const char *line, *lock_type = "";
pid_t pid = 0;
static void
rawlog_write_timestamp(struct rawlog_iostream *rstream, bool line_ends)
{
- unsigned char data[MAX_INT_STRLEN + 6 + 1 + 3];
+ unsigned char data[MAX_INT_STRLEN + 1 + 6 + 1 + 3];
buffer_t buf;
if ((rstream->flags & IOSTREAM_RAWLOG_FLAG_TIMESTAMP) == 0)
bool subscriptions)
{
const char *value;
- char env_name[13+MAX_INT_STRLEN+1];
+ char env_name[strlen(env_name_base) + MAX_INT_STRLEN];
unsigned int i = 1;
value = mail_user_plugin_getenv(user, env_name_base);
{
ARRAY_TYPE(const_string) patterns;
const char *str;
- char set_name[6+MAX_INT_STRLEN+1];
+ char set_name[6 + MAX_INT_STRLEN];
unsigned int i;
t_array_init(&patterns, 16);
{
ARRAY_TYPE(const_string) patterns;
const char *str;
- char set_name[6+MAX_INT_STRLEN+1];
+ char set_name[6 + MAX_INT_STRLEN];
unsigned int i;
t_array_init(&patterns, 16);
{
ARRAY_TYPE(const_string) patterns;
const char *str;
- char set_name[21+MAX_INT_STRLEN+1];
+ char set_name[21 + MAX_INT_STRLEN];
unsigned int i;
str = mail_user_plugin_getenv(user, "fts_autoindex_exclude");
static int maildirsize_update(struct maildir_quota_root *root,
int count_diff, int64_t bytes_diff)
{
- char str[MAX_INT_STRLEN*2 + 2 + 1];
+ char str[MAX_INT_STRLEN * 2 + 2];
int ret = 0;
if (count_diff == 0 && bytes_diff == 0)
const char **error_r)
{
struct quota_settings *quota_set;
- char root_name[5 + MAX_INT_STRLEN + 1];
+ char root_name[5 + MAX_INT_STRLEN];
const char *env, *error;
unsigned int i;
pool_t pool;