p2cstrcpy(instrument_name[ch], name); 
p2cstrcpy(tmp, name); strncpy(instrument_name[ch], tmp, sizeof(instrument_name[ch])); 
static void set_instrument(MidiEvent *ev){	long instrumentNumber;	int ch = ev->channel;	channel[ch].program = ev->a;	if(drum_part[ch]){		if(play_system_mode == GS_SYSTEM_MODE && channel[ch].bank_lsb == 2)				// SC-88 Map			instrumentNumber = kFirstDrumkit + sc88_drum_kit[ev->a] + 1;		else if(play_system_mode == GS_SYSTEM_MODE && channel[ch].bank_lsb == 3)		// SC-88Pro Map			instrumentNumber = kFirstDrumkit + sc88pro_drum_kit[ev->a] + 1;		else			instrumentNumber = kFirstDrumkit + ev->a + 1;	}	else {		if(play_system_mode == GS_SYSTEM_MODE)			instrumentNumber = kFirstGSInstrument + (channel[ch].bank_msb<<7) + ev->a;		else if(play_system_mode == XG_SYSTEM_MODE)			instrumentNumber = xg_instrument_number(ch, ev->a);		else			instrumentNumber = kFirstGMInstrument + ev->a;	}	if(instrument_number[ch] != instrumentNumber){		NoteRequest	nr;		long index,  part;		OSType synthType;		Str31 name;		SynthesizerConnections connections;		MusicComponent mc;		instrument_number[ch] = instrumentNumber;		if(note_channel[ch] != NULL)			NADisposeNoteChannel(gNoteAllocator, note_channel[ch]);		nr.info.flags = 0;		if (qt5orlater && ch <= 16)			nr.info.midiChannelAssignment = kNoteRequestSpecifyMIDIChannel | ch;		else			nr.info.midiChannelAssignment = 0;	// see note QuickTimeMusic.h.		*(short *)(&nr.info.polyphony) = EndianS16_NtoB(8);			// 8 voices poliphonic		*(Fixed *)(&nr.info.typicalPolyphony) = EndianU32_NtoB(0x00010000);		NAStuffToneDescription(gNoteAllocator, instrumentNumber, &nr.tone);		NANewNoteChannel(gNoteAllocator, &nr, &note_channel[ch]);		NAGetNoteChannelInfo(gNoteAllocator, note_channel[ch], &index, &part);		NAGetRegisteredMusicDevice(gNoteAllocator, index, &synthType, name, &connections, &mc);		MusicGetPartName(mc, part, name);		p2cstrcpy(instrument_name[ch], name);	}	ctl_prog_event(ch, ev->a);}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/361cc5df1e14516b0a3eef7766539860da9a9721/mac_qt_a.c/clean/timidity/mac_qt_a.c