Changed sprintf to strcpy/strcat to remove the only usage of sprint
  saving ~1000bytes