Welcome to the Builder Academy

Question Bugfix in log

More
06 May 2016 14:09 - 06 May 2016 21:24 #5845 by prool
Bugfix in log was created by prool
Sometimes in the log file appear strange characters.

Symbols appear after the date before the text message.

Bug in file: src/utils.c

function: void basic_mud_vlog

In line: char timestr[20];

Change 20 to 21

And add clean buffer:
Code:
for (i=0;i<21;i++) timestr[i]=0;
before strftime(timestr, sizeof(timestr), ...

Strange characters no longer appear

Prool

With best regards, Prool
Last edit: 06 May 2016 21:24 by thomas. Reason: added code tags to avoid swallowing of the [ i ].

Please Log in or Create an account to join the conversation.

Time to create page: 0.161 seconds