int line_length;
char buf[512];
char cmd[256];
- char email[256];
+ char email[256] = "";
char subtype[128];
int success = 0;
- char address_to_unsubscribe[256];
+ char address_to_unsubscribe[256] = "";
char scancmd[256];
char scanemail[256];
char *holdbuf = NULL;
int linelen = 0;
int buflen = 0;
- strcpy(address_to_unsubscribe, "");
-
if (CtdlGetRoom(&qrbuf, room) != 0) {
cprintf("%d There is no list called '%s'\n",
ERROR + ROOM_NOT_FOUND, room);
*/
if (success) {
cprintf("%d %d operation(s) confirmed.\n", CIT_OK, success);
- CtdlLogPrintf(CTDL_NOTICE,
+ syslog(LOG_NOTICE,
"Mailing list: %s %ssubscribed to %s with token %s\n",
email,
(!IsEmptyStr(address_to_unsubscribe)) ? "un" : "",
CtdlRegisterProtoHook(cmd_subs, "SUBS", "List subscribe/unsubscribe");
}
- /* return our Subversion id for the Log */
+ /* return our module name for the log */
return "listsub";
}