Use strcpy instead of sprintf