eggdrop icon indicating copy to clipboard operation
eggdrop copied to clipboard

Fix putlog timestamp: localtime() -> localtime_r()

Open michaelortmann opened this issue 2 years ago • 0 comments

Found by: Arno Patch by: michaelortmann Fixes:

One-line summary: Fix putlog timestamp: localtime() -> localtime_r()

Additional description (if needed): No, eggdrop didnt invent the time machine, it just suffered from thread-unsafe localtime(): [21:55:36] Writing user file... [21:55:35] Writing channel file... This bug was introduced in 2019 by my very self: 5b395f2b7cd572afb0e58ee221e3ad86c9b94881

Also this patch replaces ctime() with ctime_r()

Test cases demonstrating functionality (if applicable):

michaelortmann avatar Mar 14 '23 21:03 michaelortmann