fixes a crash when strftime overflowed buffer #205