cvs: /php4 main.c

From: Date: Fri, 27 Aug 1999 04:51:49 +0000
Subject: cvs: /php4 main.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-3774@lists.php.net to get a copy of this message
zeev Fri Aug 27 00:51:49 1999 EDT Modified files: /php4 main.c Log: Index: php4/main.c diff -u php4/main.c:1.101 php4/main.c:1.102 --- php4/main.c:1.101 Fri Aug 27 00:31:53 1999 +++ php4/main.c Fri Aug 27 00:51:49 1999 @@ -19,7 +19,7 @@ */ -/* $Id: main.c,v 1.101 1999/08/27 04:31:53 zeev Exp $ */ +/* $Id: main.c,v 1.102 1999/08/27 04:51:49 zeev Exp $ */ #include <stdio.h> @@ -629,11 +629,14 @@ case ZMSG_LOG_SCRIPT_NAME: { struct tm *ta; time_t curtime; + char *datetime_str; SLS_FETCH(); time(&curtime); ta = localtime(&curtime); - fprintf(stderr, "[%s] Script: '%s'\n", asctime(ta), SAFE_FILENAME(SG(request_info).path_translated)); + datetime_str = asctime(ta); + datetime_str[strlen(datetime_str)-1]=0; /* get rid of the traililng newline */ + fprintf(stderr, "[%s] Script: '%s'\n", datetime_str, SAFE_FILENAME(SG(request_info).path_translated)); } break; }

« previous php.version4 (#3774) next »