Revision: 10985 https://osdn.net/projects/ttssh2/scm/svn/commits/10985 Author: nmaya Date: 2023-10-11 06:55:08 +0900 (Wed, 11 Oct 2023) Log Message: ----------- Visual Studio 2005 でビルドできない問題を修正 r10963 Revision Links: -------------- https://osdn.net/projects/ttssh2/scm/svn/commits/10963 Modified Paths: -------------- branches/4-stable/teraterm/common/ttlib.c -------------- next part -------------- Modified: branches/4-stable/teraterm/common/ttlib.c =================================================================== --- branches/4-stable/teraterm/common/ttlib.c 2023-10-10 21:41:29 UTC (rev 10984) +++ branches/4-stable/teraterm/common/ttlib.c 2023-10-10 21:55:08 UTC (rev 10985) @@ -1541,7 +1541,6 @@ SYSTEMTIME systime; const size_t sizeof_strtime = 29; char *strtime = malloc(sizeof_strtime); - *strtime = '\0'; static const char week[][4] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; @@ -1552,6 +1551,7 @@ char tmp[5]; unsigned int i = strlen(format); + *strtime = '\0'; if (utc_flag) { GetSystemTime(&systime); }