Update Terminal.cpp
Update Terminal.cpp

Refactored the printf function to solve a sporadic crash that was apparently caused after allocating new memory for the newString variable. Instead the new approach is to reuse the allocated memory of the linesbuffer for the line to be used by this printf call.

jrullan/Touchscreen_GUI,jrullan/Touchscreen_GUI