From d933cd62cb7b88620aa6de431a41e565f96cf056 Mon Sep 17 00:00:00 2001 From: "rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Tue, 22 Aug 2006 09:28:08 +0000 Subject: BUILD : 1.7.15 (1139) BUGS : N/A NOTES : Applied pelxus3 fixs from ThaPrince git-svn-id: svn://svn.anope.org/anope/trunk@1139 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@862 5417fbe8-f217-4b02-8779-1006273d7864 --- src/log.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/log.c') diff --git a/src/log.c b/src/log.c index 60568b4a9..c8c808437 100644 --- a/src/log.c +++ b/src/log.c @@ -31,7 +31,7 @@ static int get_logname(char *name, int count, struct tm *tm) time(&t); tm = localtime(&t); } - + /* fix bug 577 */ strftime(timestamp, sizeof(timestamp), "%Y%m%d", tm); snprintf(name, count, "logs/%s.%s", log_filename, timestamp); @@ -93,7 +93,7 @@ int open_log(void) if (logfile) return 0; - + /* if removed again.. get_logname is always 1 */ get_logname(name, sizeof(name), NULL); logfile = fopen(name, "a"); @@ -320,7 +320,8 @@ void fatal_sockerror(const char *fmt, ...) fprintf(stderr, "%s FATAL: %s: %s\n", buf, buf2, ano_sockstrerror(errno_save)); if (servsock >= 0) - anope_cmd_global(NULL, "FATAL ERROR! %s: %s", buf2, strerror(errno_save)); + anope_cmd_global(NULL, "FATAL ERROR! %s: %s", buf2, + strerror(errno_save)); exit(1); } -- cgit