X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=logging.c;h=f1c42cded96e8c3493af6aaf0586fa021019acfa;hb=06434ffc713ff60f7631b48e0b1463fcfc92684b;hp=808e429fe09959a6bfe11b8eda2ad63b14029984;hpb=36694012169a241db6bceb68d7e0365c6816b9d9;p=PuTTY.git diff --git a/logging.c b/logging.c index 808e429f..f1c42cde 100644 --- a/logging.c +++ b/logging.c @@ -169,7 +169,6 @@ void logfopen(void *handle) { struct LogContext *ctx = (struct LogContext *)handle; char buf[256]; - time_t t; struct tm tm; char writemod[4]; @@ -181,8 +180,7 @@ void logfopen(void *handle) return; sprintf(writemod, "wb"); /* default to rewrite */ - time(&t); - tm = *localtime(&t); + tm = ltime(); /* substitute special codes in file name */ xlatlognam(&ctx->currlogfilename, ctx->cfg.logfilename,ctx->cfg.host, &tm);