Skip to content

Commit 3c6b16b

Browse files
committed
fix exeinfo year bug
1 parent b85aad6 commit 3c6b16b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bncsutil/checkrevision.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ MEXP(int) getExeInfo(const char* file_name, char* exe_info,
494494

495495
ret = (int) snprintf(exe_info, exe_info_size,
496496
"%s %02u/%02u/%02u %02u:%02u:%02u %lu", base,
497-
(time->tm_mon+1), time->tm_mday, time->tm_year,
497+
(time->tm_mon+1), time->tm_mday, (time->tm_year % 100),
498498
time->tm_hour, time->tm_min, time->tm_sec, file_size);
499499
#endif
500500

0 commit comments

Comments
 (0)