log_common() strftime fix

log_common() uses strftime() to create timestamps, however the buffer holding
the timestamp is not big enough to fit the terminating null resulting in random
junk in logs.