Update of /cvsroot/alsa/alsa-kernel/isa/ad1848 In directory sc8-pr-cvs1:/tmp/cvs-serv31308/isa/ad1848
Modified Files: ad1848_lib.c Log Message: Added strlcpy() strlcat() functions Index: ad1848_lib.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/isa/ad1848/ad1848_lib.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -r1.25 -r1.26 --- ad1848_lib.c 23 Apr 2003 10:01:35 -0000 1.25 +++ ad1848_lib.c 30 May 2003 12:28:34 -0000 1.26 @@ -1148,7 +1148,7 @@ ctl = snd_ctl_new1(&newctls[type], chip); if (! ctl) return -ENOMEM; - strncpy(ctl->id.name, name, sizeof(ctl->id.name)-1); + strlcpy(ctl->id.name, name, sizeof(ctl->id.name)); ctl->id.index = index; ctl->private_value = value; if ((err = snd_ctl_add(chip->card, ctl)) < 0) { ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog