--- lmtp2nntp.c 2001/10/15 13:05:22 1.94
+++ lmtp2nntp.c 2001/10/15 13:14:43 1.95
@@ -91,8 +91,9 @@
#define ERR_EXECUTION 1
#define ERR_DELIVERY -2
-#define STDSTRLEN 128
+#define STDSTRLEN 512
#define MAXNEWSSERVICES 16
+#define MAXACLS 32
static lmtp_rc_t lmtp_cb_lhlo(lmtp_t *lmtp, lmtp_io_t *io, lmtp_req_t *req, void *ctx);
static lmtp_rc_t lmtp_cb_mail(lmtp_t *lmtp, lmtp_io_t *io, lmtp_req_t *req, void *ctx);
@@ -125,8 +126,6 @@
l2_stream_t *l2;
};
-#define MAXACLS 32
-
struct acl {
char *acl;
int not;
@@ -2164,8 +2163,10 @@
for (i = 0; i < ctx->nsc; i++) {
if (ctx->ns[i].rc != NNTP_OK) {
str_format(errorstring, sizeof(errorstring),
- "%s:%s returned %s\nwith last response \"%s\"",
- ctx->ns[i].h, ctx->ns[i].p, nntp_error(ctx->ns[i].rc), nntp_lastresp(ctx->ns[i].nntp));
+ "%s:%s returned %s\n"
+ "%s:%s lastresp \"%s\"",
+ ctx->ns[i].h, ctx->ns[i].p, nntp_error(ctx->ns[i].rc),
+ ctx->ns[i].h, ctx->ns[i].p, nntp_lastresp(ctx->ns[i].nntp));
argz_add(&azErr, &asErr, errorstring);
}
}
|