Modernize output.cpp, removing arbitrary max buffer size.