elm->modenvrate[i] = (int *) safe_memdup(elm->modenvrate[i], 6 * sizeof(int)); 
elm->modenvrate[i] = (int *) safe_memdup(elm->modenvrate[i], 6 * sizeof(int)); 
void copy_tone_bank_element(ToneBankElement *elm, const ToneBankElement *src){	int i;	free_tone_bank_element(elm);	memcpy(elm, src, sizeof(ToneBankElement));	if (elm->name)		elm->name = safe_strdup(elm->name);	if (elm->comment)		elm->comment = safe_strdup(elm->comment);	if (elm->tunenum)		elm->tune = (float *) safe_memdup(				elm->tune, elm->tunenum * sizeof(float));	if (elm->sclnotenum)		elm->sclnote = (int16 *) safe_memdup(				elm->sclnote, elm->sclnotenum * sizeof(int16));	if (elm->scltunenum)		elm->scltune = (int16 *) safe_memdup(				elm->scltune, elm->scltunenum * sizeof(int16));	if (elm->fcnum)		elm->fc = (int16 *) safe_memdup(				elm->fc, elm->fcnum * sizeof(int16));	if (elm->resonum)		elm->reso = (int16 *) safe_memdup(				elm->reso, elm->resonum * sizeof(int16));	if (elm->trempitchnum)		elm->trempitch = (int16 *) safe_memdup(				elm->trempitch, elm->trempitchnum * sizeof(int16));	if (elm->tremfcnum)		elm->tremfc = (int16 *) safe_memdup(				elm->tremfc, elm->tremfcnum * sizeof(int16));	if (elm->modpitchnum)		elm->modpitch = (int16 *) safe_memdup(				elm->modpitch, elm->modpitchnum * sizeof(int16));	if (elm->modfcnum)		elm->modfc = (int16 *) safe_memdup(				elm->modfc, elm->modfcnum * sizeof(int16));	if (elm->envratenum) {		elm->envrate = (int **) safe_memdup(				elm->envrate, elm->envratenum * sizeof(int *));		for (i = 0; i < elm->envratenum; i++)			elm->envrate[i] = (int *) safe_memdup(elm->envrate[i], 6 * sizeof(int));	}	if (elm->envofsnum) {		elm->envofs = (int **) safe_memdup(				elm->envofs, elm->envofsnum * sizeof(int *));		for (i = 0; i < elm->envofsnum; i++)			elm->envofs[i] = (int *) safe_memdup(elm->envofs[i], 6 * sizeof(int));	}	if (elm->modenvratenum) {		elm->modenvrate = (int **) safe_memdup(				elm->modenvrate, elm->modenvratenum * sizeof(int *));		for (i = 0; i < elm->modenvratenum; i++)			elm->modenvrate[i] = (int *) safe_memdup(elm->modenvrate[i], 6 * sizeof(int));	}	if (elm->modenvofsnum) {		elm->modenvofs = (int **) safe_memdup(				elm->modenvofs, elm->modenvofsnum * sizeof(int *));		for (i = 0; i < elm->modenvofsnum; i++)			elm->modenvofs[i] = (int *) safe_memdup(elm->modenvofs[i], 6 * sizeof(int));	}	if (elm->tremnum) {		elm->trem = (Quantity **) safe_memdup(elm->trem, elm->tremnum * sizeof(Quantity *));		for (i = 0; i < elm->tremnum; i++)			elm->trem[i] = (Quantity *) safe_memdup(elm->trem[i], 3 * sizeof(Quantity));	}	if (elm->vibnum) {		elm->vib = (Quantity **) safe_memdup(elm->vib, elm->vibnum * sizeof(Quantity *));		for (i = 0; i < elm->vibnum; i++)			elm->vib[i] = (Quantity *) safe_memdup(elm->vib[i], 3 * sizeof(Quantity));	}}
4357	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4357/c4f9e1465b55408f85b1af01b13d52750df237da/instrum.c/buggy/timidity/instrum.c