Fixed automatic refresh error.

Data on screen was not updated because strcpy was used in a wrong way.