Code cleanup
This commit is contained in:
parent
6f03858520
commit
075cfa6841
@ -26,6 +26,7 @@ v0.61.1 20-Jun-2004.
|
|||||||
|
|
||||||
mbfido:
|
mbfido:
|
||||||
Added compile directive for full newsgate.
|
Added compile directive for full newsgate.
|
||||||
|
Removed logmessage in addpkt function.
|
||||||
|
|
||||||
mbindex:
|
mbindex:
|
||||||
Code cleanup for nodelist processing.
|
Code cleanup for nodelist processing.
|
||||||
|
@ -244,8 +244,7 @@ int AddMsgHdr(FILE *fp, faddr *f, faddr *t, int flags, int cost, time_t date, ch
|
|||||||
struct tm *Tm;
|
struct tm *Tm;
|
||||||
|
|
||||||
if ((tname == NULL) || (strlen(tname) > 36) ||
|
if ((tname == NULL) || (strlen(tname) > 36) ||
|
||||||
(fname == NULL) || (strlen(fname) > 36) ||
|
(fname == NULL) || (strlen(fname) > 36) || (subj == NULL) || (strlen(subj) > 72)) {
|
||||||
(subj == NULL) || (strlen(subj) > 72)) {
|
|
||||||
if (tname == NULL)
|
if (tname == NULL)
|
||||||
WriteError("AddMsgHdr() error, To name is NULL");
|
WriteError("AddMsgHdr() error, To name is NULL");
|
||||||
else if (strlen(tname) > 36)
|
else if (strlen(tname) > 36)
|
||||||
@ -298,7 +297,9 @@ int AddMsgHdr(FILE *fp, faddr *f, faddr *t, int flags, int cost, time_t date, ch
|
|||||||
fprintf(fp, "%s%c", tname, '\0');
|
fprintf(fp, "%s%c", tname, '\0');
|
||||||
fprintf(fp, "%s%c", fname, '\0');
|
fprintf(fp, "%s%c", fname, '\0');
|
||||||
if (flags & M_FILE) {
|
if (flags & M_FILE) {
|
||||||
Syslog('-', "change %s to %s", subj, basename(subj));
|
/*
|
||||||
|
* Strip path of filenames in the subject line.
|
||||||
|
*/
|
||||||
fprintf(fp, "%s%c", basename(subj), '\0');
|
fprintf(fp, "%s%c", basename(subj), '\0');
|
||||||
} else {
|
} else {
|
||||||
fprintf(fp, "%s%c", subj, '\0');
|
fprintf(fp, "%s%c", subj, '\0');
|
||||||
|
Reference in New Issue
Block a user