X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinpgen.c;h=7772f55a8771695d111cb9a8eff4e3e98b46c1bd;hb=06434ffc713ff60f7631b48e0b1463fcfc92684b;hp=e80dbfec7fda862066763eb32120c6e198b1e55e;hpb=36694012169a241db6bceb68d7e0365c6816b9d9;p=PuTTY.git diff --git a/windows/winpgen.c b/windows/winpgen.c index e80dbfec..7772f55a 100644 --- a/windows/winpgen.c +++ b/windows/winpgen.c @@ -1279,14 +1279,12 @@ static int CALLBACK MainDlgProc(HWND hwnd, UINT msg, */ *state->commentptr = snewn(30, char); { - time_t t; - struct tm *tm; - time(&t); - tm = localtime(&t); + struct tm tm; + tm = ltime(); if (state->is_dsa) - strftime(*state->commentptr, 30, "dsa-key-%Y%m%d", tm); + strftime(*state->commentptr, 30, "dsa-key-%Y%m%d", &tm); else - strftime(*state->commentptr, 30, "rsa-key-%Y%m%d", tm); + strftime(*state->commentptr, 30, "rsa-key-%Y%m%d", &tm); } /*