$Log$
+ Revision 573.76 2001/02/01 04:08:03 ajc
+ * IMAP minor change to mailbox name output
+ * Increased size of buffer in lprintf()
+
Revision 573.75 2001/01/28 09:50:02 error
* sysdep.c: lprintf() now generates timestamps
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
ra = CtdlRoomAccess(qrbuf, &CC->usersupp);
if (ra & UA_KNOWN) {
imap_mailboxname(buf, sizeof buf, qrbuf);
- cprintf("* LSUB () \"|\" \"%s\"\r\n", buf);
+ cprintf("* LSUB () \"|\" ");
+ imap_strout(buf);
+ cprintf("\r\n");
}
}
if ( (ra & UA_KNOWN)
|| ((ra & UA_GOTOALLOWED) && (ra & UA_ZAPPED))) {
imap_mailboxname(buf, sizeof buf, qrbuf);
- cprintf("* LIST () \"|\" \"%s\"\r\n", buf);
+ cprintf("* LIST () \"|\" ");
+ imap_strout(buf);
+ cprintf("\r\n");
}
}
/*
* lprintf() ... Write logging information
+ *
+ * Note: the variable "buf" below needs to be large enough to handle any
+ * log data sent through this function. BE CAREFUL!
*/
void lprintf(int loglevel, const char *format, ...) {
va_list arg_ptr;
- char buf[512];
+ char buf[4096];
va_start(arg_ptr, format);
vsprintf(buf, format, arg_ptr);