patch-2.1.28 linux/drivers/sound/midi_synth.c
Next file: linux/drivers/sound/midi_synth.h
Previous file: linux/drivers/sound/midi_ctrl.h
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Wed Feb 26 02:35:18 1997
- Orig file:
v2.1.27/linux/drivers/sound/midi_synth.c
- Orig date:
Fri Nov 15 00:15:24 1996
diff -u --recursive --new-file v2.1.27/linux/drivers/sound/midi_synth.c linux/drivers/sound/midi_synth.c
@@ -4,7 +4,7 @@
* High level midi sequencer manager for dumb MIDI interfaces.
*/
/*
- * Copyright (C) by Hannu Savolainen 1993-1996
+ * Copyright (C) by Hannu Savolainen 1993-1997
*
* OSS/Free for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)
* Version 2 (June 1991). See the "COPYING" file distributed with this software
@@ -275,10 +275,7 @@
{
case SNDCTL_SYNTH_INFO:
- {
- char *fixit = (char *) synth_devs[dev]->info;
- copy_to_user (&((char *) arg)[0], fixit, sizeof (struct synth_info));
- };
+ memcpy ((&((char *) arg)[0]), (char *) synth_devs[dev]->info, sizeof (struct synth_info));
return 0;
break;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov