X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=sound%2Foss%2Fsound_timer.c;h=8021c85f076d09aa1c118473607e67219b04fc16;hb=3c00303206c3a1ccd86579efdc90bc35f140962e;hp=48cda6c4c257b34d191d3512ff52658de4329669;hpb=67cb40560940ba36de22d66f0d5d8efe235c8bb1;p=mirror_ubuntu-artful-kernel.git diff --git a/sound/oss/sound_timer.c b/sound/oss/sound_timer.c index 48cda6c4c257..8021c85f076d 100644 --- a/sound/oss/sound_timer.c +++ b/sound/oss/sound_timer.c @@ -320,7 +320,7 @@ void sound_timer_init(struct sound_lowlev_timer *t, char *name) n = sound_alloc_timerdev(); if (n == -1) n = 0; /* Overwrite the system timer */ - strcpy(sound_timer.info.name, name); + strlcpy(sound_timer.info.name, name, sizeof(sound_timer.info.name)); sound_timer_devs[n] = &sound_timer; } EXPORT_SYMBOL(sound_timer_init);