/[openvortex]/alsa/alsa-kernel/core/seq/seq_instr.c
ViewVC logotype

Diff of /alsa/alsa-kernel/core/seq/seq_instr.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by vizard, Tue Apr 15 21:53:14 2003 UTC revision 1.2 by vizard, Sun Jun 15 21:01:30 2003 UTC
# Line 478  static int instr_put(snd_seq_kinstr_ops_ Line 478  static int instr_put(snd_seq_kinstr_ops_
478          }          }
479          instr->ops = ops;          instr->ops = ops;
480          instr->instr = put.id.instr;          instr->instr = put.id.instr;
481          strncpy(instr->name, put.data.name, sizeof(instr->name)-1);          strlcpy(instr->name, put.data.name, sizeof(instr->name));
         instr->name[sizeof(instr->name)-1] = '\0';  
482          instr->type = put.data.type;          instr->type = put.data.type;
483          if (instr->type == SNDRV_SEQ_INSTR_ATYPE_DATA) {          if (instr->type == SNDRV_SEQ_INSTR_ATYPE_DATA) {
484                  result = ops->put(ops->private_data,                  result = ops->put(ops->private_data,

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26