Skip to content

Commit 720c8c2

Browse files
authored
Merge pull request #10 from BNETDocs/exeinfofix
fix exeinfo year bug
2 parents b85aad6 + 3c6b16b commit 720c8c2

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)