Correctly size the time buffer to avoid stack corruption.
Update notes on stack smashing fix.