text-entry: use memcpy instead of strcpy