str-sanitize.c revision 76b43e4417bab52e913da39b5f5bc2a130d3f149
/* Copyright (c) 2004-2008 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "str.h"
#include "str-sanitize.h"
{
size_t i;
for (i = 0; i < max_len; i++) {
break;
}
return i;
}
{
size_t i;
else
}
if (src[i] != '\0') {
}
}
{
size_t i;
return NULL;
if (src[i] == '\0')
return src;
}