if (conf != NULL) {
do {
- extract_token(buf, conf, 0, '\n');
+ extract_token(buf, conf, 0, '\n', sizeof buf);
strcpy(conf, &conf[strlen(buf)+1]);
} while ( (strlen(conf)>0) && (strlen(buf)>0) );
n = num_tokens(conf, '\n');
for (i=0; i<n; ++i) {
- extract_token(buf, conf, i, '\n');
+ extract_token(buf, conf, i, '\n', sizeof buf);
sptr = malloc(sizeof(struct spamstrings_t));
sptr->string = strdup(buf);
sptr->next = spamstrings;
void inetcfg_init_backend(long msgnum, void *userdata) {
struct CtdlMessage *msg;
- msg = CtdlFetchMessage(msgnum);
+ msg = CtdlFetchMessage(msgnum, 1);
if (msg != NULL) {
inetcfg_setTo(msg);
CtdlFreeMessage(msg);
void spamstrings_init_backend(long msgnum, void *userdata) {
struct CtdlMessage *msg;
- msg = CtdlFetchMessage(msgnum);
+ msg = CtdlFetchMessage(msgnum, 1);
if (msg != NULL) {
spamstrings_setTo(msg);
CtdlFreeMessage(msg);