X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=os%2Fwindows%2Fposix.c;h=3388127821acadc5d4053689f1246efd3be96af3;hp=5830e4c4edab4cd7bee764873fb9aafa61de3fdf;hb=1f086b55e7480b0926177576f36813b8b9eb4a61;hpb=5de1ade5a8a8dd118bdfac835a6cfb4bcf013734 diff --git a/os/windows/posix.c b/os/windows/posix.c index 5830e4c4..33881278 100755 --- a/os/windows/posix.c +++ b/os/windows/posix.c @@ -250,7 +250,7 @@ char* ctime_r(const time_t *t, char *buf) Time_tToSystemTime(*t, &systime); /* We don't know how long `buf` is, but assume it's rounded up from the minimum of 25 to 32 */ - StringCchPrintfA(buf, 31, "%s %s %d %02d:%02d:%02d %04d", dayOfWeek[systime.wDayOfWeek % 7], monthOfYear[(systime.wMonth - 1) % 12], + StringCchPrintfA(buf, 31, "%s %s %d %02d:%02d:%02d %04d\n", dayOfWeek[systime.wDayOfWeek % 7], monthOfYear[(systime.wMonth - 1) % 12], systime.wDay, systime.wHour, systime.wMinute, systime.wSecond, systime.wYear); return buf; }