From 2796e83d397f9351ee28ccaf9db28ef2e4ac2510 Mon Sep 17 00:00:00 2001 From: nocuser Date: Wed, 31 Aug 1994 15:54:26 +0000 Subject: [PATCH] randomized continuation lines --- gen/mailhub.dc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gen/mailhub.dc b/gen/mailhub.dc index b1af6661..86987d24 100644 --- a/gen/mailhub.dc +++ b/gen/mailhub.dc @@ -155,7 +155,6 @@ get_info() /* Get Locks */ - EXEC SQL SELECT modtime INTO :buf FROM imembers WHERE list_id = 0; EXEC SQL SELECT modtime INTO :buf FROM users WHERE users_id = 0; EXEC SQL SELECT modtime INTO :buf FROM list WHERE list_id = 0; @@ -317,7 +316,7 @@ get_info() return; sqlerr: com_err(whoami, MR_INGRES_ERR, " code %d\n", sqlca.sqlcode); - critical_alert("DCM", "Hesiod build encountered DATABASE ERROR %d", + critical_alert("DCM", "Mailhub build encountered DATABASE ERROR %d", sqlca.sqlcode); exit(MR_INGRES_ERR); } @@ -572,11 +571,16 @@ register char *s; { register wwid; static int cont = 1; + char str[8]; wwid = strlen(s); if (!bol && awid + wwid + 2 > AL_MAX_WID) { - fprintf(out, ",\n\tcontinuation%d\ncontinuation%d: ", cont, cont); + sprintf(str, "%c%c%c%c%c%c", random() % 26 + 97, random() % 26 + 97, + random() % 26 + 97, random() % 26 + 97, + random() % 26 + 97, random() % 26 + 97); + str[6] = '\0'; + fprintf(out, ",\n\tcont%d-%s\ncont%d-%s: ", cont, str, cont, str); cont++; awid = lwid = 17 + wwid; fputs(s, out); -- 2.45.1