sprintf replaced by snprintf and strcpy replaced by strncpy
calls to strcpy and sprintf suppressed
updatestring() now returns an integer to handle canceling
scroller() function suppressed